about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-01-24 14:56:14 +0100
committervanhauser-thc <vh@thc.org>2023-01-24 14:56:14 +0100
commit0251b9bfd8545b8070d8e5c1294c4b1e7968dcf4 (patch)
tree0faa2a2ae3bfc028d05544bc22c7e3a4f72912a4
parent4063a3eb4c4099e37aef4f1d96e8b80d58d65fe2 (diff)
downloadafl++-0251b9bfd8545b8070d8e5c1294c4b1e7968dcf4.tar.gz
llvm15 pcguard_init earlier constructor
-rw-r--r--instrumentation/afl-compiler-rt.o.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c
index 9c6345b6..dcff6a0f 100644
--- a/instrumentation/afl-compiler-rt.o.c
+++ b/instrumentation/afl-compiler-rt.o.c
@@ -1514,6 +1514,9 @@ void __sanitizer_cov_trace_pc_guard_init(uint32_t *start, uint32_t *stop) {
 
   _is_sancov = 1;
 
+  __afl_auto_first();
+  __afl_auto_second();
+
   if (__afl_debug) {
 
     fprintf(stderr,