diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-08-05 13:30:43 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-08-05 13:30:43 +0200 |
commit | 1064c7114e2b4f69a6a3ef63d69900e96e7d4164 (patch) | |
tree | 4bfb03741e86234792d394948824c03e41d5fbac /llvm_mode/afl-clang-fast.c | |
parent | 0281872ddf5f7b5058770eee610ea5250b82cc01 (diff) | |
download | afl++-1064c7114e2b4f69a6a3ef63d69900e96e7d4164.tar.gz |
code format
Diffstat (limited to 'llvm_mode/afl-clang-fast.c')
-rw-r--r-- | llvm_mode/afl-clang-fast.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm_mode/afl-clang-fast.c b/llvm_mode/afl-clang-fast.c index e0b33475..efaba122 100644 --- a/llvm_mode/afl-clang-fast.c +++ b/llvm_mode/afl-clang-fast.c @@ -161,8 +161,8 @@ static void find_obj(u8 *argv0) { static void edit_params(u32 argc, char **argv, char **envp) { - u8 fortify_set = 0, asan_set = 0, x_set = 0, bit_mode = 0, - shared_linking = 0, preprocessor_only = 0; + u8 fortify_set = 0, asan_set = 0, x_set = 0, bit_mode = 0, shared_linking = 0, + preprocessor_only = 0; u8 have_pic = 0; u8 *name; @@ -567,8 +567,9 @@ static void edit_params(u32 argc, char **argv, char **envp) { cc_params[cc_par_cnt++] = "none"; } - + if (preprocessor_only) { + /* In the preprocessor_only case (-E), we are not actually compiling at all but requesting the compiler to output preprocessed sources only. We must not add the runtime in this case because the compiler will @@ -622,8 +623,8 @@ static void edit_params(u32 argc, char **argv, char **envp) { } if (!shared_linking) - cc_params[cc_par_cnt++] = alloc_printf("-Wl,--dynamic-list=%s/dynamic_list.txt", obj_path); - + cc_params[cc_par_cnt++] = + alloc_printf("-Wl,--dynamic-list=%s/dynamic_list.txt", obj_path); #endif |