Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit f2e44af

Browse files
authored
afl-clang-fast: remove unused code related to maybe_linking (#83)
1 parent cc3ae0f commit f2e44af

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

llvm_mode/afl-clang-fast.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ static void find_obj(u8* argv0) {
103103

104104
static void edit_params(u32 argc, char** argv) {
105105

106-
u8 fortify_set = 0, asan_set = 0, x_set = 0, maybe_linking = 1, bit_mode = 0;
106+
u8 fortify_set = 0, asan_set = 0, x_set = 0, bit_mode = 0;
107107
u8 *name;
108108

109109
cc_params = ck_alloc((argc + 128) * sizeof(u8*));
@@ -141,10 +141,6 @@ static void edit_params(u32 argc, char** argv) {
141141

142142
cc_params[cc_par_cnt++] = "-Qunused-arguments";
143143

144-
/* Detect stray -v calls from ./configure scripts. */
145-
146-
if (argc == 1 && !strcmp(argv[1], "-v")) maybe_linking = 0;
147-
148144
while (--argc) {
149145
u8* cur = *(++argv);
150146

@@ -154,16 +150,11 @@ static void edit_params(u32 argc, char** argv) {
154150

155151
if (!strcmp(cur, "-x")) x_set = 1;
156152

157-
if (!strcmp(cur, "-c") || !strcmp(cur, "-S") || !strcmp(cur, "-E"))
158-
maybe_linking = 0;
159-
160153
if (!strcmp(cur, "-fsanitize=address") ||
161154
!strcmp(cur, "-fsanitize=memory")) asan_set = 1;
162155

163156
if (strstr(cur, "FORTIFY_SOURCE")) fortify_set = 1;
164157

165-
if (!strcmp(cur, "-shared")) maybe_linking = 0;
166-
167158
if (!strcmp(cur, "-Wl,-z,defs") ||
168159
!strcmp(cur, "-Wl,--no-undefined")) continue;
169160

0 commit comments

Comments
 (0)