mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-18 04:38:08 +00:00
fix instrumentlist for LTO with clang < 13
This commit is contained in:
@ -577,6 +577,8 @@ static void edit_params(u32 argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
#if defined(AFL_CLANG_LDPATH) && LLVM_MAJOR >= 13
|
#if defined(AFL_CLANG_LDPATH) && LLVM_MAJOR >= 13
|
||||||
cc_params[cc_par_cnt++] = "-Wl,--lto-legacy-pass-manager";
|
cc_params[cc_par_cnt++] = "-Wl,--lto-legacy-pass-manager";
|
||||||
|
#else
|
||||||
|
cc_params[cc_par_cnt++] = "-fno-experimental-new-pass-manager";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
cc_params[cc_par_cnt++] = "-Wl,--allow-multiple-definition";
|
cc_params[cc_par_cnt++] = "-Wl,--allow-multiple-definition";
|
||||||
|
@ -49,6 +49,9 @@ test -e ../afl-clang-lto -a -e ../SanitizerCoverageLTO.so && {
|
|||||||
grep -q "No instrumentation targets found" test.out && {
|
grep -q "No instrumentation targets found" test.out && {
|
||||||
$ECHO "$GREEN[+] llvm_mode LTO instrumentlist feature works correctly"
|
$ECHO "$GREEN[+] llvm_mode LTO instrumentlist feature works correctly"
|
||||||
} || {
|
} || {
|
||||||
|
echo CUT------------------------------------------------------------------CUT
|
||||||
|
cat test.out
|
||||||
|
echo CUT------------------------------------------------------------------CUT
|
||||||
$ECHO "$RED[!] llvm_mode LTO instrumentlist feature failed"
|
$ECHO "$RED[!] llvm_mode LTO instrumentlist feature failed"
|
||||||
CODE=1
|
CODE=1
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user