"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Makefile" between
honggfuzz-2.1.tar.gz and honggfuzz-2.2.tar.gz

About: honggfuzz is a security oriented, feedback-driven, evolutionary, easy-to-use fuzzer with powerful analysis options.

Makefile  (honggfuzz-2.1):Makefile  (honggfuzz-2.2)
skipping to change at line 37 skipping to change at line 37
HFUZZ_CC_BIN := hfuzz_cc/hfuzz-cc HFUZZ_CC_BIN := hfuzz_cc/hfuzz-cc
HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c HFUZZ_CC_SRCS := hfuzz_cc/hfuzz-cc.c
COMMON_CFLAGS := -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Werr or -Wno-format-truncation -Wno-override-init -I. COMMON_CFLAGS := -std=c11 -I/usr/local/include -D_GNU_SOURCE -Wall -Wextra -Werr or -Wno-format-truncation -Wno-override-init -I.
COMMON_LDFLAGS := -pthread -lm COMMON_LDFLAGS := -pthread -lm
COMMON_SRCS := $(sort $(wildcard *.c)) COMMON_SRCS := $(sort $(wildcard *.c))
CFLAGS ?= -O3 -mtune=native -funroll-loops CFLAGS ?= -O3 -mtune=native -funroll-loops
LDFLAGS ?= LDFLAGS ?=
LIBS_CFLAGS ?= -fPIC -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 # fortify-source intercepts some functions, so we disable it for libraries LIBS_CFLAGS ?= -fPIC -fno-stack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 # fortify-source intercepts some functions, so we disable it for libraries
GREP_COLOR ?= GREP_COLOR ?=
BUILD_OSSFUZZ_STATIC ?= false # for https://github.com/google/oss-fuzz BUILD_OSSFUZZ_STATIC ?= false # for https://github.com/google/oss-fuzz
BUILD_LINUX_NO_BFD ?= false # for users who don't want to use libbfd/binutils
OS ?= $(shell uname -s) OS ?= $(shell uname -s)
MARCH ?= $(shell uname -m) MARCH ?= $(shell uname -m)
KERNEL ?= $(shell uname -r) KERNEL ?= $(shell uname -r)
ifeq ($(OS)$(findstring Microsoft,$(KERNEL)),Linux) # matches Linux but excludes WSL (Windows Subsystem for Linux) ifeq ($(OS)$(findstring Microsoft,$(KERNEL)),Linux) # matches Linux but excludes WSL (Windows Subsystem for Linux)
ARCH := LINUX ARCH := LINUX
ARCH_CFLAGS := -D_FILE_OFFSET_BITS=64 ARCH_CFLAGS := -D_FILE_OFFSET_BITS=64
ARCH_SRCS := $(sort $(wildcard linux/*.c)) ARCH_SRCS := $(sort $(wildcard linux/*.c))
ARCH_LDFLAGS := -L/usr/local/include ARCH_LDFLAGS := -L/usr/local/include
ifeq ($(BUILD_OSSFUZZ_STATIC),true) ifeq ($(BUILD_OSSFUZZ_STATIC),true)
ARCH_LDFLAGS += -Wl,-Bstatic \ ARCH_LDFLAGS += -Wl,-Bstatic \
`pkg-config --libs --static libunwind-ptrace libunwi nd-generic` \ `pkg-config --libs --static libunwind-ptrace libunwi nd-generic` \
-lopcodes -lbfd -liberty -lz \ -lopcodes -lbfd -liberty -lz \
-Wl,-Bdynamic -Wl,-Bdynamic
else else
ARCH_LDFLAGS += -lunwind-ptrace -lunwind-generic -lunwind \ ARCH_LDFLAGS += -lunwind-ptrace -lunwind-generic -lunwind -llzma \
-lopcodes -lbfd -lopcodes -lbfd
endif endif
ifeq ($(BUILD_LINUX_NO_BFD),true)
ARCH_CFLAGS += -D_HF_LINUX_NO_BFD
endif
ARCH_LDFLAGS += -lrt -ldl -lm ARCH_LDFLAGS += -lrt -ldl -lm
ifeq ("$(wildcard /usr/local/include/intel-pt.h)","/usr/local/include/intel- pt.h") ifeq ("$(wildcard /usr/local/include/intel-pt.h)","/usr/local/include/intel- pt.h")
ARCH_CFLAGS += -D_HF_LINUX_INTEL_PT_LIB ARCH_CFLAGS += -D_HF_LINUX_INTEL_PT_LIB
ARCH_CFLAGS += -I/usr/local/include ARCH_CFLAGS += -I/usr/local/include
ARCH_LDFLAGS += -L/usr/local/lib -lipt -Wl,--rpath=/usr/local/lib ARCH_LDFLAGS += -L/usr/local/lib -lipt -Wl,--rpath=/usr/local/lib
endif endif
ifeq ("$(wildcard /usr/include/intel-pt.h)","/usr/include/intel-pt.h") ifeq ("$(wildcard /usr/include/intel-pt.h)","/usr/include/intel-pt.h")
ARCH_CFLAGS += -D_HF_LINUX_INTEL_PT_LIB ARCH_CFLAGS += -D_HF_LINUX_INTEL_PT_LIB
ARCH_LDFLAGS += -lipt ARCH_LDFLAGS += -lipt
endif endif
# OS Linux # OS Linux
else ifeq ($(OS),Darwin) else ifeq ($(OS),Darwin)
ARCH := DARWIN ARCH := DARWIN
ARCH_SRCS := $(sort $(wildcard mac/*.c)) ARCH_SRCS := $(sort $(wildcard mac/*.c) mac/mach_excServer.c mac/mach_excUse r.c)
# MacOS-X grep seem to use colors unconditionally # MacOS-X grep seem to use colors unconditionally
GREP_COLOR = --color=never GREP_COLOR = --color=never
# Figure out which crash reporter to use. # Figure out which crash reporter to use.
CRASHWRANGLER := third_party/mac CRASHWRANGLER := third_party/mac
OS_VERSION := $(shell sw_vers -productVersion) OS_VERSION := $(shell sw_vers -productVersion)
ifneq (,$(findstring 10.15,$(OS_VERSION))) ifneq (,$(findstring 10.15,$(OS_VERSION)))
CRASH_REPORT := $(CRASHWRANGLER)/CrashReport_Sierra.o CRASH_REPORT := $(CRASHWRANGLER)/CrashReport_Sierra.o
else ifneq (,$(findstring 10.14,$(OS_VERSION))) else ifneq (,$(findstring 10.14,$(OS_VERSION)))
skipping to change at line 159 skipping to change at line 163
endif endif
CFLAGS_BLOCKS := CFLAGS_BLOCKS :=
COMPILER = $(shell $(CC) -v 2>&1 | \ COMPILER = $(shell $(CC) -v 2>&1 | \
grep $(GREP_COLOR) -oE '((gcc|clang) version|LLVM version.*clang)' | \ grep $(GREP_COLOR) -oE '((gcc|clang) version|LLVM version.*clang)' | \
grep $(GREP_COLOR) -oE '(clang|gcc)' | head -n1) grep $(GREP_COLOR) -oE '(clang|gcc)' | head -n1)
ifeq ($(COMPILER),clang) ifeq ($(COMPILER),clang)
ARCH_CFLAGS += -Wno-initializer-overrides -Wno-unknown-warning-option ARCH_CFLAGS += -Wno-initializer-overrides -Wno-unknown-warning-option
ARCH_CFLAGS += -Wno-gnu-empty-initializer -Wno-format-pedantic ARCH_CFLAGS += -Wno-gnu-empty-initializer -Wno-format-pedantic
ARCH_CFLAGS += -Wno-gnu-statement-expression ARCH_CFLAGS += -Wno-gnu-statement-expression
ARCH_CFLAGS += -mllvm -inline-threshold=2000
CFLAGS_BLOCKS = -fblocks CFLAGS_BLOCKS = -fblocks
ifneq ($(OS),Darwin) ifneq ($(OS),Darwin)
ARCH_LDFLAGS += -Wl,-Bstatic -lBlocksRuntime -Wl,-Bdynamic ARCH_LDFLAGS += -Wl,-Bstatic -lBlocksRuntime -Wl,-Bdynamic
endif endif
endif endif
ifeq ($(COMPILER),gcc)
ARCH_CFLAGS += -finline-limit=4000
endif
SRCS := $(COMMON_SRCS) $(ARCH_SRCS) SRCS := $(COMMON_SRCS) $(ARCH_SRCS)
OBJS := $(SRCS:.c=.o) OBJS := $(SRCS:.c=.o)
LHFUZZ_SRCS := $(sort $(wildcard libhfuzz/*.c)) LHFUZZ_SRCS := $(sort $(wildcard libhfuzz/*.c))
LHFUZZ_OBJS := $(LHFUZZ_SRCS:.c=.o) LHFUZZ_OBJS := $(LHFUZZ_SRCS:.c=.o)
LHFUZZ_ARCH := libhfuzz/libhfuzz.a LHFUZZ_ARCH := libhfuzz/libhfuzz.a
LHFUZZ_SHARED := libhfuzz/libhfuzz.so LHFUZZ_SHARED := libhfuzz/libhfuzz.so
HFUZZ_INC ?= $(shell pwd) HFUZZ_INC ?= $(shell pwd)
skipping to change at line 252 skipping to change at line 260
$(LHFUZZ_ARCH) $(LHFUZZ_SHARED) $(LHFUZZ_OBJS) \ $(LHFUZZ_ARCH) $(LHFUZZ_SHARED) $(LHFUZZ_OBJS) \
$(LCOMMON_ARCH) $(LCOMMON_OBJS) \ $(LCOMMON_ARCH) $(LCOMMON_OBJS) \
$(LNETDRIVER_ARCH) $(LNETDRIVER_OBJS) \ $(LNETDRIVER_ARCH) $(LNETDRIVER_OBJS) \
$(MAC_GARGBAGE) $(ANDROID_GARBAGE) $(SUBDIR_GARBAGE) $(MAC_GARGBAGE) $(ANDROID_GARBAGE) $(SUBDIR_GARBAGE)
all: $(BIN) $(HFUZZ_CC_BIN) $(LHFUZZ_ARCH) $(LHFUZZ_SHARED) $(LCOMMON_ARCH) $(LN ETDRIVER_ARCH) all: $(BIN) $(HFUZZ_CC_BIN) $(LHFUZZ_ARCH) $(LHFUZZ_SHARED) $(LCOMMON_ARCH) $(LN ETDRIVER_ARCH)
%.o: %.c %.o: %.c
$(CC) -c $(CFLAGS) $(CFLAGS_BLOCKS) -o $@ $< $(CC) -c $(CFLAGS) $(CFLAGS_BLOCKS) -o $@ $<
mac/arch.o: mac/arch.c mac/mach_exc.h mac/mach_excServer.c mac/mach_excServer.h mac/mach_excUser.c &:
mig -header mac/mach_exc.h -user mac/mach_excUser.c -sheader mac/mach_exc Server.h \ mig -header mac/mach_exc.h -user mac/mach_excUser.c -sheader mac/mach_exc Server.h \
-server mac/mach_excServer.c $(SDK)/usr/include/mach/mach_exc.def s -server mac/mach_excServer.c $(SDK)/usr/include/mach/mach_exc.def s
mac/arch.o: mac/arch.c mac/mach_exc.h mac/mach_excServer.h
$(CC) -c $(CFLAGS) $(CFLAGS_BLOCKS) -o $@ $< $(CC) -c $(CFLAGS) $(CFLAGS_BLOCKS) -o $@ $<
%.so: %.c %.so: %.c
$(CC) -fPIC -shared $(CFLAGS) -o $@ $< $(CC) -fPIC -shared $(CFLAGS) -o $@ $<
%.dylib: %.c %.dylib: %.c
$(CC) -fPIC -shared $(CFLAGS) -o $@ $< $(CC) -fPIC -shared $(CFLAGS) -o $@ $<
$(BIN): $(OBJS) $(LCOMMON_ARCH) $(BIN): $(OBJS) $(LCOMMON_ARCH)
$(LD) -o $(BIN) $(OBJS) $(LCOMMON_ARCH) $(LDFLAGS) $(LD) -o $(BIN) $(OBJS) $(LCOMMON_ARCH) $(LDFLAGS)
skipping to change at line 423 skipping to change at line 433
libhfuzz/fetch.o: libhfcommon/common.h libhfcommon/files.h libhfuzz/fetch.o: libhfcommon/common.h libhfcommon/files.h
libhfuzz/fetch.o: libhfcommon/common.h libhfcommon/log.h libhfuzz/fetch.o: libhfcommon/common.h libhfcommon/log.h
libhfuzz/instrument.o: libhfuzz/instrument.h honggfuzz.h libhfcommon/util.h libhfuzz/instrument.o: libhfuzz/instrument.h honggfuzz.h libhfcommon/util.h
libhfuzz/instrument.o: libhfcommon/common.h libhfcommon/files.h libhfuzz/instrument.o: libhfcommon/common.h libhfcommon/files.h
libhfuzz/instrument.o: libhfcommon/common.h libhfcommon/log.h libhfuzz/instrument.o: libhfcommon/common.h libhfcommon/log.h
libhfuzz/linux.o: libhfcommon/common.h libhfcommon/files.h libhfuzz/linux.o: libhfcommon/common.h libhfcommon/files.h
libhfuzz/linux.o: libhfcommon/common.h libhfcommon/log.h libhfcommon/ns.h libhfuzz/linux.o: libhfcommon/common.h libhfcommon/log.h libhfcommon/ns.h
libhfuzz/linux.o: libhfuzz/libhfuzz.h libhfuzz/linux.o: libhfuzz/libhfuzz.h
libhfuzz/memorycmp.o: libhfcommon/common.h libhfcommon/util.h libhfuzz/memorycmp.o: libhfcommon/common.h libhfcommon/util.h
libhfuzz/memorycmp.o: libhfuzz/instrument.h libhfuzz/memorycmp.o: libhfuzz/instrument.h
libhfuzz/performance.o: libhfuzz/performance.h honggfuzz.h libhfcommon/util.h
libhfuzz/performance.o: libhfcommon/log.h libhfuzz/instrument.h
libhfuzz/persistent.o: honggfuzz.h libhfcommon/util.h libhfcommon/common.h libhfuzz/persistent.o: honggfuzz.h libhfcommon/util.h libhfcommon/common.h
libhfuzz/persistent.o: libhfcommon/files.h libhfcommon/common.h libhfuzz/persistent.o: libhfcommon/files.h libhfcommon/common.h
libhfuzz/persistent.o: libhfcommon/log.h libhfuzz/fetch.h libhfuzz/persistent.o: libhfcommon/log.h libhfuzz/fetch.h
libhfuzz/persistent.o: libhfuzz/instrument.h libhfuzz/libhfuzz.h libhfuzz/persistent.o: libhfuzz/instrument.h libhfuzz/libhfuzz.h
libhfuzz/persistent.o: libhfuzz/performance.h
linux/arch.o: arch.h honggfuzz.h libhfcommon/util.h fuzz.h linux/arch.o: arch.h honggfuzz.h libhfcommon/util.h fuzz.h
linux/arch.o: libhfcommon/common.h libhfcommon/files.h libhfcommon/common.h linux/arch.o: libhfcommon/common.h libhfcommon/files.h libhfcommon/common.h
linux/arch.o: libhfcommon/log.h libhfcommon/ns.h linux/perf.h linux/trace.h linux/arch.o: libhfcommon/log.h libhfcommon/ns.h linux/perf.h linux/trace.h
linux/arch.o: sanitizers.h subproc.h linux/arch.o: sanitizers.h subproc.h
linux/bfd.o: linux/bfd.h linux/unwind.h sanitizers.h honggfuzz.h linux/bfd.o: linux/bfd.h linux/unwind.h sanitizers.h honggfuzz.h
linux/bfd.o: libhfcommon/util.h libhfcommon/common.h libhfcommon/files.h linux/bfd.o: libhfcommon/util.h libhfcommon/common.h libhfcommon/files.h
linux/bfd.o: libhfcommon/common.h libhfcommon/log.h linux/bfd.o: libhfcommon/common.h libhfcommon/log.h
linux/perf.o: linux/perf.h honggfuzz.h libhfcommon/util.h linux/perf.o: linux/perf.h honggfuzz.h libhfcommon/util.h
linux/perf.o: libhfcommon/common.h libhfcommon/files.h libhfcommon/common.h linux/perf.o: libhfcommon/common.h libhfcommon/files.h libhfcommon/common.h
linux/perf.o: libhfcommon/log.h linux/pt.h linux/perf.o: libhfcommon/log.h linux/pt.h
 End of changes. 10 change blocks. 
3 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)