diff options
author | van Hauser <vh@thc.org> | 2020-04-23 12:02:15 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-04-23 12:02:15 +0200 |
commit | 5eb1f3a4c609851e7ee2127d29433b2ed6e56e56 (patch) | |
tree | dd57059dd1c7c9ec2494aa45a362f579a8f5fcd0 | |
parent | 8ada9d06e8551821594bac13aedf6ff2406035ff (diff) | |
download | afl++-5eb1f3a4c609851e7ee2127d29433b2ed6e56e56.tar.gz |
use mmap in llvm_mode if LTO is enabled
-rw-r--r-- | llvm_mode/GNUmakefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm_mode/GNUmakefile b/llvm_mode/GNUmakefile index 67c31f14..148210e8 100644 --- a/llvm_mode/GNUmakefile +++ b/llvm_mode/GNUmakefile @@ -68,6 +68,7 @@ endif ifeq "$(LLVM_MAJOR)" "11" $(info [+] llvm_mode detected llvm 11, enabling afl-clang-lto LTO implementation) LLVM_LTO = 1 + TEST_MMAP = 1 endif ifeq "$(LLVM_LTO)" "0" @@ -193,13 +194,13 @@ ifeq "$(shell echo '$(HASH)include <sys/ipc.h>@$(HASH)include <sys/shm.h>@int ma else SHMAT_OK=0 CFLAGS+=-DUSEMMAP=1 - LDFLAGS += -lrt + LDFLAGS += -Wno-deprecated-declarations endif ifeq "$(TEST_MMAP)" "1" SHMAT_OK=0 CFLAGS+=-DUSEMMAP=1 - LDFLAGS += -lrt + LDFLAGS += -Wno-deprecated-declarations endif PROGS = ../afl-clang-fast ../afl-llvm-pass.so ../afl-llvm-lto-whitelist.so ../afl-llvm-lto-instrumentation.so ../libLLVMInsTrim.so ../afl-llvm-rt.o ../afl-llvm-rt-32.o ../afl-llvm-rt-64.o ../compare-transform-pass.so ../split-compares-pass.so ../split-switches-pass.so ../cmplog-routines-pass.so ../cmplog-instructions-pass.so |