about summary refs log tree commit diff
diff options
context:
space:
mode:
-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;