mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-22 14:19:02 +00:00
LTO fix
This commit is contained in:
@ -4,7 +4,8 @@
|
|||||||
release of the tool. See README.md for the general instruction manual.
|
release of the tool. See README.md for the general instruction manual.
|
||||||
|
|
||||||
### Version ++4.21a (dev)
|
### Version ++4.21a (dev)
|
||||||
* your PR? :-)
|
* afl-cc:
|
||||||
|
- fixes for LTO and outdated afl-gcc mode
|
||||||
|
|
||||||
|
|
||||||
### Version ++4.20c (release)
|
### Version ++4.20c (release)
|
||||||
|
@ -341,7 +341,7 @@ llvmGetPassPluginInfo() {
|
|||||||
using OptimizationLevel = typename PassBuilder::OptimizationLevel;
|
using OptimizationLevel = typename PassBuilder::OptimizationLevel;
|
||||||
#endif
|
#endif
|
||||||
#if LLVM_VERSION_MAJOR >= 15
|
#if LLVM_VERSION_MAJOR >= 15
|
||||||
PB.registerFullLinkTimeOptimizationEarlyEPCallback(
|
PB.registerFullLinkTimeOptimizationLastEPCallback(
|
||||||
#else
|
#else
|
||||||
PB.registerOptimizerLastEPCallback(
|
PB.registerOptimizerLastEPCallback(
|
||||||
#endif
|
#endif
|
||||||
|
@ -1269,13 +1269,8 @@ void mode_final_checkout(aflcc_state_t *aflcc, int argc, char **argv) {
|
|||||||
aflcc->instrument_mode == INSTRUMENT_PCGUARD) {
|
aflcc->instrument_mode == INSTRUMENT_PCGUARD) {
|
||||||
|
|
||||||
aflcc->lto_mode = 1;
|
aflcc->lto_mode = 1;
|
||||||
// force CFG
|
|
||||||
// if (!aflcc->instrument_mode) {
|
|
||||||
|
|
||||||
aflcc->instrument_mode = INSTRUMENT_PCGUARD;
|
aflcc->instrument_mode = INSTRUMENT_PCGUARD;
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
} else if (aflcc->instrument_mode == INSTRUMENT_CLASSIC) {
|
} else if (aflcc->instrument_mode == INSTRUMENT_CLASSIC) {
|
||||||
|
|
||||||
aflcc->lto_mode = 1;
|
aflcc->lto_mode = 1;
|
||||||
|
Reference in New Issue
Block a user