about summary refs log tree commit diff
path: root/src/afl-cc.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-07-14 18:20:38 +0200
committervanhauser-thc <vh@thc.org>2021-07-14 18:20:38 +0200
commit6df597213a4406e290602f14a852f3fae64f818e (patch)
tree1238ab389992f02688f1909c9b8526af8cf82d4d /src/afl-cc.c
parent6e818ed078ef0c799043613c9f2872afbf754d15 (diff)
downloadafl++-6df597213a4406e290602f14a852f3fae64f818e.tar.gz
fix for -fsanitize=fuzzer on MacOS
Diffstat (limited to 'src/afl-cc.c')
-rw-r--r--src/afl-cc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index d35b177d..9899f973 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -767,6 +767,11 @@ static void edit_params(u32 argc, char **argv, char **envp) {
 
         cc_params[cc_par_cnt++] = afllib;
 
+#ifdef __APPLE__
+        cc_params[cc_par_cnt++] = "-undefined";
+        cc_params[cc_par_cnt++] = "dynamic_lookup";
+#endif
+
       }
 
       continue;