diff options
author | van Hauser <vh@thc.org> | 2024-05-11 09:16:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-11 09:16:21 +0200 |
commit | 90fbf59bf16f057e50132b81be759414787ce1a3 (patch) | |
tree | e57ec2ff73da06776f6cf9c20eb907a8c5aebf05 /src/afl-cc.c | |
parent | ad0d0c77fb313e6edfee111fecf2bcd16d8f915e (diff) | |
parent | 93c7cbd49603c1a256caf3ab6e971c9f4e40bab4 (diff) | |
download | afl++-90fbf59bf16f057e50132b81be759414787ce1a3.tar.gz |
Merge pull request #2084 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/afl-cc.c')
-rw-r--r-- | src/afl-cc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index 15a5bd8e..7acee8e4 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -525,7 +525,7 @@ void find_built_deps(aflcc_state_t *aflcc) { char *ptr = NULL; -#if defined(__x86_64__) +#if defined(__x86_64__) || defined(__i386__) if ((ptr = find_object(aflcc, "afl-as")) != NULL) { #ifndef __APPLE__ @@ -1911,7 +1911,13 @@ void add_sanitizers(aflcc_state_t *aflcc, char **envp) { } add_defs_fortify(aflcc, 0); - if (!aflcc->have_asan) { insert_param(aflcc, "-fsanitize=address"); } + if (!aflcc->have_asan) { + + insert_param(aflcc, "-fsanitize=address"); + insert_param(aflcc, "-fno-common"); + + } + aflcc->have_asan = 1; } else if (getenv("AFL_USE_MSAN") || aflcc->have_msan) { |