This is necessary to make use of compiler features such as UBSAN. Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> --- CC: Jan Beulich <jbeul...@suse.com> CC: Ian Jackson <ian.jack...@eu.citrix.com> CC: Wei Liu <wei.l...@citrix.com> --- tools/fuzz/libelf/Makefile | 1 + tools/fuzz/x86_instruction_emulator/Makefile | 1 + 2 files changed, 2 insertions(+)
diff --git a/tools/fuzz/libelf/Makefile b/tools/fuzz/libelf/Makefile index af44c40..c884703 100644 --- a/tools/fuzz/libelf/Makefile +++ b/tools/fuzz/libelf/Makefile @@ -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 diff --git a/tools/fuzz/x86_instruction_emulator/Makefile b/tools/fuzz/x86_instruction_emulator/Makefile index 98fd398..673b5f0 100644 --- a/tools/fuzz/x86_instruction_emulator/Makefile +++ b/tools/fuzz/x86_instruction_emulator/Makefile @@ -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 -- 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel