mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-20 05:23:43 +00:00
llvm-lto: allow skipping initialization
This commit is contained in:
@ -1005,7 +1005,8 @@ bool ModuleSanitizerCoverageLTO::instrumentModule(
|
||||
// afl++ START
|
||||
if (dFile.is_open()) dFile.close();
|
||||
|
||||
if (!getenv("AFL_LLVM_LTO_DONTWRITEID") || dictionary.size() || map_addr) {
|
||||
if (!getenv("AFL_LLVM_LTO_SKIPINIT") &&
|
||||
(!getenv("AFL_LLVM_LTO_DONTWRITEID") || dictionary.size() || map_addr)) {
|
||||
|
||||
// yes we could create our own function, insert it into ctors ...
|
||||
// but this would be a pain in the butt ... so we use afl-llvm-rt-lto.o
|
||||
|
Reference in New Issue
Block a user