diff options
author | vanhauser-thc <vh@thc.org> | 2021-03-17 01:25:21 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-03-17 01:25:21 +0100 |
commit | 413807db01b642a2ad4c70e94517d74c11ace91c (patch) | |
tree | e0bc6d7f634a5aab9a115ae88da692e51b39e458 /src/afl-cc.c | |
parent | f59ef29c267c8500cc07115b10355c82dd770064 (diff) | |
download | afl++-413807db01b642a2ad4c70e94517d74c11ace91c.tar.gz |
lto test
Diffstat (limited to 'src/afl-cc.c')
-rw-r--r-- | src/afl-cc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c index 18401d0d..4a724c12 100644 --- a/src/afl-cc.c +++ b/src/afl-cc.c @@ -959,11 +959,10 @@ static void edit_params(u32 argc, char **argv, char **envp) { if (compiler_mode != GCC && compiler_mode != CLANG) { - if (!shared_linking) { - switch (bit_mode) { case 0: + if (!shared_linking) cc_params[cc_par_cnt++] = alloc_printf("%s/afl-compiler-rt.o", obj_path); if (lto_mode) @@ -972,6 +971,7 @@ static void edit_params(u32 argc, char **argv, char **envp) { break; case 32: + if (!shared_linking) cc_params[cc_par_cnt++] = alloc_printf("%s/afl-compiler-rt-32.o", obj_path); if (access(cc_params[cc_par_cnt - 1], R_OK)) @@ -988,6 +988,7 @@ static void edit_params(u32 argc, char **argv, char **envp) { break; case 64: + if (!shared_linking) cc_params[cc_par_cnt++] = alloc_printf("%s/afl-compiler-rt-64.o", obj_path); if (access(cc_params[cc_par_cnt - 1], R_OK)) @@ -1006,6 +1007,7 @@ static void edit_params(u32 argc, char **argv, char **envp) { } #if !defined(__APPLE__) && !defined(__sun) + if (!shared_linking) cc_params[cc_par_cnt++] = alloc_printf("-Wl,--dynamic-list=%s/dynamic_list.txt", obj_path); #endif |