Control: found -1 afl/2.34b-4

I've tried to build while passing "-mfpu=vfpv3" to $CFLAGS for llvm_mode/, but 
although
it appears NEON has been disabled by that ("-target-feature -neon"), it doesn't 
work out
like that (test build on abel which is non-NEON):

<cut>
[*] Testing the CC wrapper and instrumentation output...
unset AFL_USE_ASAN AFL_USE_MSAN AFL_INST_RATIO; AFL_QUIET=1 AFL_PATH=. 
AFL_CC=clang-3.9 ../afl-clang-fast -g -O2 -fdebug-prefix-
map=/home/stender/sandbox/afl-2.34b=. -fstack-protector-strong -Wformat 
-Werror=format-security -mfpu=vfpv3 -Wall -D_FORTIFY_SOURCE=2 
-g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" 
-DVERSION=\"2.34b\"  ../test-instr.c -o test-instr 
-Wl,-z,relro -Wl,-z,now
Stack dump:
0.      Program arguments: /usr/lib/llvm-3.9/bin/clang -cc1 -triple 
armv7-unknown-linux-gnueabihf -emit-obj -disable-free -disable-
llvm-verifier -discard-value-names -main-file-name test-instr.c 
-mrelocation-model static -mthread-model posix -mdisable-fp-elim 
-fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu 
cortex-a8 -target-feature -fp-only-sp -target-feature 
-d16 -target-feature +vfp3 -target-feature -fp16 -target-feature -vfp4 
-target-feature -fp-armv8 -target-feature -neon -target-
feature -crypto -target-abi aapcs-linux -mfloat-abi hard -dwarf-column-info 
-debug-info-kind=limited -dwarf-version=4 -debugger-
tuning=gdb -resource-dir /usr/lib/llvm-3.9/bin/../lib/clang/3.9.0 -D 
_FORTIFY_SOURCE=2 -D AFL_PATH="/usr/lib/afl" -D 
BIN_PATH="/usr/bin" -D VERSION="2.34b" -D __AFL_HAVE_MANUAL_CONTROL=1 -D 
__AFL_COMPILER=1 -D 
FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1 -D __AFL_LOOP(_A)=({ static volatile 
char *_B __attribute__((used));  _B = 
(char*)"##SIG_AFL_PERSISTENT##"; __attribute__((visibility("default"))) int 
_L(unsigned int) __asm__("__afl_persistent_loop"); 
_L(_A); }) -D __AFL_INIT()=do { static volatile char *_A __attribute__((used)); 
 _A = (char*)"##SIG_AFL_DEFER_FORKSRV##"; 
__attribute__((visibility("default"))) void _I(void) 
__asm__("__afl_manual_init"); _I(); } while (0) -internal-isystem /usr/local
/include -internal-isystem /usr/lib/llvm-3.9/bin/../lib/clang/3.9.0/include 
-internal-externc-isystem /usr/include/arm-linux-
gnueabihf -internal-externc-isystem /include -internal-externc-isystem 
/usr/include -O3 -Wformat -Werror=format-security -Wall 
-Wno-pointer-sign -fdebug-compilation-dir 
/home/stender/sandbox/afl-2.34b/llvm_mode 
-fdebug-prefix-map=/home/stender/sandbox
/afl-2.34b=. -ferror-limit 19 -fmessage-length 105 -funroll-loops 
-stack-protector 2 -fallow-half-arguments-and-returns 
-fno-signed-char -fobjc-runtime=gcc -fdiagnostics-show-option 
-fcolor-diagnostics -vectorize-loops -vectorize-slp -load ../afl-
llvm-pass.so -o /tmp/test-instr-64d4c5.o -x c ../test-instr.c 
1.      <eof> parser at end of file
2.      Per-module optimization passes
3.      Running pass 'American Fuzzy Lop Instrumentation' on module 
'../test-instr.c'.
clang: error: unable to execute command: Illegal instruction
</cut>

If somebody finds time and interest, hints are welcome (the latest package is 
in experimental).

DS

-- 
4096R/DF5182C8
Debian Developer (sten...@debian.org)
LPIC-1 (LPI000329859 64mz6f7kt4)
http://www.danielstender.com/

Reply via email to