tools/fuzz: Use $(CC) for linking the harnesses

This is necessary to make use of compiler features such as UBSAN.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
Andrew Cooper committed 2017-03-20 16:45:20 +00:00
1 parent cde043c55c
commit 264efe24ff
2 files changed
+2

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ libelf.a: $(ELF_LIB_OBJS)
libelf-fuzzer-all: libelf.a libelf-fuzzer.o
afl-libelf-fuzzer: afl-libelf-fuzzer.o libelf-fuzzer.o $(ELF_LIB_OBJS)
$(CC) $(CFLAGS) $^ -o $@
# Common targets
.PHONY: all
@@ -34,6 +34,7 @@ x86-insn-emulator.a: x86_emulate.o
$(AR) rc $@ $^
afl-x86-insn-emulator-fuzzer: afl-x86-insn-emulator-fuzzer.o x86-insn-emulator-fuzzer.o x86_emulate.o
$(CC) $(CFLAGS) $^ -o $@
# Common targets
.PHONY: all
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.