mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 12:18:08 +00:00
review adaptions for afl-llvm-pass
This commit is contained in:
@ -201,6 +201,8 @@ else
|
|||||||
TARGETS = test_shm test_deps $(PROGS) afl-clang-fast.8 test_build all_done
|
TARGETS = test_shm test_deps $(PROGS) afl-clang-fast.8 test_build all_done
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
LLVM_MIN_4_0_1 = $(shell awk 'BEGIN { exit ARGV[1] >= ARGV[2] }' $(LLVMVER) 4.0.1; echo $$?)
|
||||||
|
|
||||||
all: $(TARGETS)
|
all: $(TARGETS)
|
||||||
|
|
||||||
ifeq "$(SHMAT_OK)" "1"
|
ifeq "$(SHMAT_OK)" "1"
|
||||||
@ -268,7 +270,10 @@ endif
|
|||||||
-$(CXX) $(CLANG_CFL) -DLLVMInsTrim_EXPORTS -fno-rtti -fPIC -std=$(LLVM_STDCXX) -shared $< MarkNodes.cc -o $@ $(CLANG_LFL)
|
-$(CXX) $(CLANG_CFL) -DLLVMInsTrim_EXPORTS -fno-rtti -fPIC -std=$(LLVM_STDCXX) -shared $< MarkNodes.cc -o $@ $(CLANG_LFL)
|
||||||
|
|
||||||
../afl-llvm-pass.so: afl-llvm-pass.so.cc | test_deps
|
../afl-llvm-pass.so: afl-llvm-pass.so.cc | test_deps
|
||||||
$(CXX) $(CLANG_CFL) -DLLVMInsTrim_EXPORTS -Wno-#warnings -fno-rtti -fPIC -std=$(LLVM_STDCXX) -shared $< -o $@ $(CLANG_LFL)
|
ifeq "$(LLVM_MIN_4_0_1)" "0"
|
||||||
|
$(info [!] N-gram branch coverage instrumentation is not available for llvm version $(LLVMVER))
|
||||||
|
endif
|
||||||
|
$(CXX) $(CLANG_CFL) -DLLVMInsTrim_EXPORTS -fno-rtti -fPIC -std=$(LLVM_STDCXX) -shared $< -o $@ $(CLANG_LFL)
|
||||||
|
|
||||||
../afl-llvm-lto-whitelist.so: afl-llvm-lto-whitelist.so.cc
|
../afl-llvm-lto-whitelist.so: afl-llvm-lto-whitelist.so.cc
|
||||||
ifeq "$(LLVM_LTO)" "1"
|
ifeq "$(LLVM_LTO)" "1"
|
||||||
|
@ -153,8 +153,6 @@ uint64_t PowerOf2Ceil(unsigned in) {
|
|||||||
/* #if LLVM_VERSION_STRING >= "4.0.1" */
|
/* #if LLVM_VERSION_STRING >= "4.0.1" */
|
||||||
#if LLVM_VERSION_MAJOR >= 4 || (LLVM_VERSION_MAJOR == 4 && LLVM_VERSION_PATCH >= 1)
|
#if LLVM_VERSION_MAJOR >= 4 || (LLVM_VERSION_MAJOR == 4 && LLVM_VERSION_PATCH >= 1)
|
||||||
#define AFL_HAVE_VECTOR_INTRINSICS 1
|
#define AFL_HAVE_VECTOR_INTRINSICS 1
|
||||||
#else
|
|
||||||
#warning this clang version does not have vector intrinsics -> no ngram instrumentation
|
|
||||||
#endif
|
#endif
|
||||||
bool AFLCoverage::runOnModule(Module &M) {
|
bool AFLCoverage::runOnModule(Module &M) {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user