mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
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:
1 parent
cde043c55c
commit
264efe24ff
2 files changed
+2
No files matched your search
@@ -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
|
||||
|
||||