diff options
author | Nils Bars <nils.bars@rub.de> | 2024-01-11 11:45:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 10:45:26 +0000 |
commit | 9d3c25ac8103d79217f89d79dcc7dc20873222f4 (patch) | |
tree | b59e748d7198630d9d9dfadf97ae50e146d6f538 /src | |
parent | 4e9c6050d038c852db4f1a22fad2e8c678c9f053 (diff) | |
download | afl++-9d3c25ac8103d79217f89d79dcc7dc20873222f4.tar.gz |
Strip `-Wl,-no-undefined` during compilation (#1952)
Make the compiler wrapper stripping `-Wl,-no-undefined` in addition to `-Wl,--no-undefined`. Both versions of the flag are accepted by clang and, therefore, used by building systems in the wild (e.g., samba will not build without this fix).
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-cc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index 5ee19e42..f39dfdcc 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -1962,8 +1962,8 @@ param_st parse_linking_params(aflcc_state_t *aflcc, u8 *cur_argv, u8 scan, } } else if (!strcmp(cur_argv, "-Wl,-z,defs") || - !strcmp(cur_argv, "-Wl,--no-undefined") || + !strcmp(cur_argv, "-Wl,-no-undefined") || !strcmp(cur_argv, "--no-undefined") || strstr(cur_argv, "afl-compiler-rt") || strstr(cur_argv, "afl-llvm-rt")) { @@ -3030,4 +3030,3 @@ int main(int argc, char **argv, char **envp) { return 0; } - |