diff options
author | vanhauser-thc <vh@thc.org> | 2021-08-19 17:02:17 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-08-19 17:02:17 +0200 |
commit | 591d6c59c758d1043f8690e4e9dda22dbbefbc1c (patch) | |
tree | 1df877b5654cfa065b37a1796d2f077a2540308a /instrumentation/afl-compiler-rt.o.c | |
parent | 1959812e83becb0895b924d0398d634055cd0c10 (diff) | |
download | afl++-591d6c59c758d1043f8690e4e9dda22dbbefbc1c.tar.gz |
fix shared linking on macos
Diffstat (limited to 'instrumentation/afl-compiler-rt.o.c')
-rw-r--r-- | instrumentation/afl-compiler-rt.o.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 18b0a55b..9acab4e7 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -1273,7 +1273,12 @@ __attribute__((constructor(1))) void __afl_auto_second(void) { if (__afl_already_initialized_second) return; __afl_already_initialized_second = 1; - if (getenv("AFL_DEBUG")) { __afl_debug = 1; } + if (getenv("AFL_DEBUG")) { + + __afl_debug = 1; + fprintf(stderr, "DEBUG: debug enabled\n"); + + } if (getenv("AFL_DISABLE_LLVM_INSTRUMENTATION")) return; u8 *ptr; |