diff options
author | Keno Hassler <40292329+kenohassler@users.noreply.github.com> | 2023-04-24 20:21:54 +0200 |
---|---|---|
committer | Keno Hassler <40292329+kenohassler@users.noreply.github.com> | 2023-04-24 20:32:04 +0200 |
commit | 7c3c0b26d1ae477fbae6944c0de18256621e1993 (patch) | |
tree | d4b7ec830ace790e494698409eccc0b657c16394 | |
parent | 531380d6ab9d2467d174ae45dcfa64bbf12230c0 (diff) | |
download | AFLplusplus-7c3c0b26d1ae477fbae6944c0de18256621e1993.tar.gz |
document new env var
-rw-r--r-- | docs/env_variables.md | 6 | ||||
-rw-r--r-- | src/afl-cc.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/docs/env_variables.md b/docs/env_variables.md index c5995d13..087ccdb7 100644 --- a/docs/env_variables.md +++ b/docs/env_variables.md @@ -156,7 +156,7 @@ Available options: - LTO - LTO instrumentation - NATIVE - clang's original pcguard based instrumentation - NGRAM-x - deeper previous location coverage (from NGRAM-2 up to NGRAM-16) - - PCGUARD - our own pcgard based instrumentation (default) + - PCGUARD - our own pcguard based instrumentation (default) #### CMPLOG @@ -240,7 +240,9 @@ combined. the default `0x10000`. A value of 0 or empty sets the map address to be dynamic (the original AFL way, which is slower). - `AFL_LLVM_MAP_DYNAMIC` sets the shared memory address to be dynamic. - + - `AFL_LLVM_LTO_SKIPINIT` skips adding initialization code. Some global vars + (e.g. the highest location ID) are not injected. Needed to instrument with + [WAFL](https://github.com/fgsect/WAFL.git). For more information, see [instrumentation/README.lto.md](../instrumentation/README.lto.md). diff --git a/src/afl-cc.c b/src/afl-cc.c index 7f15ad76..d1001187 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -2099,6 +2099,8 @@ int main(int argc, char **argv, char **envp) { "bb\n" " AFL_REAL_LD: use this lld linker instead of the compiled in " "path\n" + " AFL_LLVM_LTO_SKIPINIT: don't inject initialization code " + "(used in WAFL mode)\n" "If anything fails - be sure to read README.lto.md!\n"); #endif |