diff options
author | van Hauser <vh@thc.org> | 2020-01-07 21:44:55 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-01-07 21:44:55 +0100 |
commit | 578b1f4b9499c6429c0835d36c09e6f4573ae7e2 (patch) | |
tree | 86bacf2d784a31dda5e87069c7210a1f169d9cd6 | |
parent | 48171dc4ada1938b7286dee324732325a3f1b6c3 (diff) | |
download | afl++-578b1f4b9499c6429c0835d36c09e6f4573ae7e2.tar.gz |
llvm ver display in afl-clang-fast
-rw-r--r-- | TODO | 3 | ||||
-rw-r--r-- | docs/ChangeLog | 2 | ||||
-rw-r--r-- | llvm_mode/Makefile | 3 | ||||
-rw-r--r-- | llvm_mode/afl-clang-fast.c | 5 |
4 files changed, 7 insertions, 6 deletions
diff --git a/TODO b/TODO index 4e602592..8a8fdd41 100644 --- a/TODO +++ b/TODO @@ -2,9 +2,6 @@ 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 diff --git a/docs/ChangeLog b/docs/ChangeLog index d3b27e35..f034d251 100644 --- a/docs/ChangeLog +++ b/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 diff --git a/llvm_mode/Makefile b/llvm_mode/Makefile index 0e290ffc..ebe6b9de 100644 --- a/llvm_mode/Makefile +++ b/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 diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c index 6d40bb4c..2b359cdf 100644 --- a/llvm_mode/afl-clang-fast.c +++ b/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); |