about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-12-16 21:31:37 +0100
committervanhauser-thc <vh@thc.org>2021-12-16 21:31:37 +0100
commit641a943d95436d9e9f4312ae06c74c54624f084d (patch)
treec7a8439ae4b41f9177c379fb12911209da91adc0
parent3cb7319ccdb98dcc6b023dbead603a4450ac4541 (diff)
downloadafl++-641a943d95436d9e9f4312ae06c74c54624f084d.tar.gz
more -z defs filtering
-rw-r--r--docs/Changelog.md1
-rw-r--r--src/afl-cc.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/Changelog.md b/docs/Changelog.md
index 1daa9a75..58eef2ee 100644
--- a/docs/Changelog.md
+++ b/docs/Changelog.md
@@ -57,6 +57,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>.
     - added AFL_USE_TSAN thread sanitizer support
     - llvm and LTO mode modified to work with new llvm 14-dev (again. again.)
     - fix for AFL_REAL_LD
+    - more -z defs filtering
     - make -v without options work
   - added the very good grammar mutator "GramaTron" to the
     custom_mutators
diff --git a/src/afl-cc.c b/src/afl-cc.c
index 442cf265..f90f62a8 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -720,10 +720,10 @@ static void edit_params(u32 argc, char **argv, char **envp) {
 
     }
 
-    if (!strcmp(cur, "-z")) {
+    if (!strcmp(cur, "-z") || !strcmp(cur, "-Wl,-z")) {
 
       u8 *param = *(argv + 1);
-      if (!strcmp(param, "defs")) {
+      if (!strcmp(param, "defs") || !strcmp(param, "-Wl,defs")) {
 
         skip_next = 1;
         continue;