about summary refs log tree commit diff
path: root/llvm_mode/afl-clang-fast.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-07-14 20:04:26 +0200
committerGitHub <noreply@github.com>2019-07-14 20:04:26 +0200
commit054976c3903771e2267cfcf67f38fec3ced2ab77 (patch)
tree21e2f2e0bbe93341c3813d96576c5e83f62195d0 /llvm_mode/afl-clang-fast.c
parent4a80dbdd10aedd3a3e70a0631aeb4e01438b634c (diff)
parentda8e03e18a1d01cb4ea26fc8efb25c4e7708a0b5 (diff)
downloadafl++-054976c3903771e2267cfcf67f38fec3ced2ab77.tar.gz
Merge pull request #14 from vanhauser-thc/shared_memory_mmap_refactor
Shared memory mmap refactor
Diffstat (limited to 'llvm_mode/afl-clang-fast.c')
-rw-r--r--llvm_mode/afl-clang-fast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c
index 2034f10a..249eea7d 100644
--- a/llvm_mode/afl-clang-fast.c
+++ b/llvm_mode/afl-clang-fast.c
@@ -248,6 +248,10 @@ static void edit_params(u32 argc, char** argv) {
 
   }
 
+#ifdef USEMMAP
+  cc_params[cc_par_cnt++] = "-lrt";
+#endif
+
   cc_params[cc_par_cnt++] = "-D__AFL_HAVE_MANUAL_CONTROL=1";
   cc_params[cc_par_cnt++] = "-D__AFL_COMPILER=1";
   cc_params[cc_par_cnt++] = "-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION=1";