]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
tools/fuzz: Use $(CC) for linking the harnesses
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 2 Mar 2017 20:41:49 +0000 (20:41 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 20 Mar 2017 16:45:20 +0000 (16:45 +0000)
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>
tools/fuzz/libelf/Makefile
tools/fuzz/x86_instruction_emulator/Makefile

index af44c402d1037bac7c096cc41e337a7db2f04857..c884703ff03054129eca40765f1225fae6d6d3bc 100644 (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
index 98fd398d3f95eb94ae249da3a91409885ec708b1..673b5f042d3c2971632598397ac9a8ad058fa610 100644 (file)
@@ -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