our own PCGUARD mode not for llvm 10.0.1

This commit is contained in:
vanhauser-thc
2022-03-18 12:57:51 +01:00
parent bdfac291ba
commit 69c9a176eb
2 changed files with 2 additions and 1 deletions

View File

@ -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 ! llvm15-dev with LTO and extra features (LAF/CMPLOG etc.) might have
issues at the moment issues at the moment
- converted all passed to use the new llvm pass manager for llvm 11+ - 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: - frida_mode:
- update to new frida release, handles now c++ throw/catch - update to new frida release, handles now c++ throw/catch

View File

@ -626,7 +626,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
if (instrument_mode == INSTRUMENT_PCGUARD) { if (instrument_mode == INSTRUMENT_PCGUARD) {
#if LLVM_MAJOR >= 11 || (LLVM_MAJOR == 10 && LLVM_MINOR >= 1) #if LLVM_MAJOR >= 11
#if defined __ANDROID__ || ANDROID #if defined __ANDROID__ || ANDROID
cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard"; cc_params[cc_par_cnt++] = "-fsanitize-coverage=trace-pc-guard";
instrument_mode = INSTRUMENT_LLVMNATIVE; instrument_mode = INSTRUMENT_LLVMNATIVE;