-
Notifications
You must be signed in to change notification settings - Fork 19
Description
I used the afl-clang-fast version for llvm-6.0.1 and encountered the linker problem at runtime.
The command is
macke --use-fuzzer=1 --ignore-swap --fuzz-bc=examples/sanatized_afl.bc examples/sanatized.bc
And the sanatized_afl.bc is compiled with afl-clang-fast.sanatized.bc is compiled with clang(version 3.4.2)
But report the following error
jl@jl-VirtualBox:~/klee_deploy/macke$ macke --use-fuzzer=1 --ignore-swap --fuzz-bc=examples/sanatized_afl.bc examples/sanatized.bc Compiling helper functions for fuzzer... Instrument bc file with fuzzer drivers... Adding asan for reproducer... linking fuzz-target... Error code 1: /tmp/target_with_drivers-3a319b.o: In function c4':
sanatized.bc:(.text+0x7): undefined reference to __afl_prev_loc.2' sanatized.bc:(.text+0x12): undefined reference to __afl_area_ptr.1'
/tmp/target_with_drivers-3a319b.o: In function c3': sanatized.bc:(.text+0x57): undefined reference to __afl_prev_loc.2'
sanatized.bc:(.text+0x62): undefined reference to __afl_area_ptr.1' ...... /tmp/target_with_drivers-3a319b.o: In function LLVMFuzzerTestOneInput':
sanatized.bc:(.text+0x1a3): undefined reference to __afl_prev_loc.2' sanatized.bc:(.text+0x1ae): undefined reference to __afl_area_ptr.1'
/tmp/target_with_drivers-3a319b.o: In function macke_fuzzer_driver_c4': sanatized.bc:(.text+0x1d3): undefined reference to __afl_prev_loc.2'
sanatized.bc:(.text+0x1de): undefined reference to __afl_area_ptr.1' /tmp/target_with_drivers-3a319b.o: In function macke_fuzzer_generator_t�':
sanatized.bc:(.text+0x204): undefined reference to __afl_prev_loc.2' sanatized.bc:(.text+0x20f): undefined reference to __afl_area_ptr.1'
/tmp/target_with_drivers-3a319b.o: In function macke_fuzzer_driver_c3': sanatized.bc:(.text+0x253): undefined reference to __afl_prev_loc.2'
sanatized.bc:(.text+0x25e): undefined reference to __afl_area_ptr.1' clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
afl is