about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-03-18 12:57:51 +0100
committervanhauser-thc <vh@thc.org>2022-03-18 12:57:51 +0100
commit69c9a176eb6ded2e7087ab437950a8ec324cdb1b (patch)
treeddf5a9183a5eb95b2c0b465d0d659c292f98cd7c
parentbdfac291ba653b34a1d304d6135111d68b8d8267 (diff)
downloadafl++-69c9a176eb6ded2e7087ab437950a8ec324cdb1b.tar.gz
our own PCGUARD mode not for llvm 10.0.1
-rw-r--r--docs/Changelog.md1
-rw-r--r--src/afl-cc.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md
index d672686d..f47a9b7c 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -27,6 +27,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
     ! llvm15-dev with LTO and extra features (LAF/CMPLOG etc.) might have
       issues at the moment
     - converted all passed to use the new llvm pass manager for llvm 11+
+    - AFL++ PCGUARD mode is not available for 10.0.1 anymore (11+ only)
   - frida_mode:
     - update to new frida release, handles now c++ throw/catch
 
diff --git a/src/afl-cc.c b/src/afl-cc.c
index 487f394e..df2957b4 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -626,7 +626,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
 
       if (instrument_mode == INSTRUMENT_PCGUARD) {
 
-#if LLVM_MAJOR >= 11 || (LLVM_MAJOR == 10 && LLVM_MINOR >= 1)
+#if LLVM_MAJOR >= 11
   #if defined __ANDROID__ || ANDROID
         cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard";
         instrument_mode = INSTRUMENT_LLVMNATIVE;