llvm ver display in afl-clang-fast
MODIFY
TODO
TODO
Roadmap 2.61+:
==============
-llvm_mode:
- - hard-code the clang/clang++ with -D from the Makefile via llvm-config values
-
gcc_plugin:
- laf-intel
- better instrumentation

MODIFY
docs/ChangeLog
docs/ChangeLog
@@ -19,6 +19,8 @@ Version ++2.60d (develop):
- afl-fuzz:
- now prints the real python version support compiled in
+ - afl-clang-fast now shows in the help output for which llvm version it
+ was compiled for.
- added fix from Debian project to compile libdislocator and libtokencap

MODIFY
llvm_mode/Makefile
llvm_mode/Makefile
@@ -67,7 +67,8 @@ endif
CFLAGS ?= -O3 -funroll-loops
CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -I ../include/ \
-DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \
- -DLLVM_BINDIR=\"$(LLVM_BINDIR)\" -DVERSION=\"$(VERSION)\"
+ -DLLVM_BINDIR=\"$(LLVM_BINDIR)\" -DVERSION=\"$(VERSION)\" \
+ -DLLVM_VERSION=\"$(LLVMVER)\"
ifdef AFL_TRACE_PC
CFLAGS += -DUSE_TRACE_PC=1
endif

MODIFY
llvm_mode/afl-clang-fast.c
llvm_mode/afl-clang-fast.c
@@ -443,8 +443,9 @@ int main(int argc, char** argv) {
"You can specify custom next-stage toolchain via AFL_CC and AFL_CXX. "
"Setting\n"
- "AFL_HARDEN enables hardening optimizations in the compiled code.\n\n",
- BIN_PATH, BIN_PATH);
+ "AFL_HARDEN enables hardening optimizations in the compiled code.\n\n"
+ "afl-clang-fast was built for llvm %s with the llvm binary path of \"%s\".\n\n",
+ BIN_PATH, BIN_PATH, LLVM_VERSION, LLVM_BINDIR);
exit(1);

llvm ver display in afl-clang-fast