|
Lines 1039-1045
Link Here
|
| 1039 |
while (next_sym) { \ |
1039 |
while (next_sym) { \ |
| 1040 |
this_sym = next_sym; \ |
1040 |
this_sym = next_sym; \ |
| 1041 |
if ((next_sym = strchr(this_sym, ','))) \ |
1041 |
if ((next_sym = strchr(this_sym, ','))) \ |
| 1042 |
next_sym += 1; /* Skip the comma */ \ |
1042 |
*next_sym++ = '\0'; /* Skip the comma */ \ |
| 1043 |
/* do we want a defined symbol ? */ \ |
1043 |
/* do we want a defined symbol ? */ \ |
| 1044 |
if (*this_sym == '+') { \ |
1044 |
if (*this_sym == '+') { \ |
| 1045 |
if (sym->st_shndx == SHN_UNDEF) \ |
1045 |
if (sym->st_shndx == SHN_UNDEF) \ |
|
Lines 1051-1058
Link Here
|
| 1051 |
continue; \ |
1051 |
continue; \ |
| 1052 |
++this_sym; \ |
1052 |
++this_sym; \ |
| 1053 |
} \ |
1053 |
} \ |
| 1054 |
if (next_sym) /* Copy it so that we don't have to worry about the final , */ \ |
|
|
| 1055 |
this_sym = strndup(this_sym, next_sym-this_sym); \ |
| 1056 |
/* ok, lets compare the name now */ \ |
1054 |
/* ok, lets compare the name now */ \ |
| 1057 |
if (scanelf_match_symname(this_sym, symname)) { \ |
1055 |
if (scanelf_match_symname(this_sym, symname)) { \ |
| 1058 |
if (be_semi_verbose) { \ |
1056 |
if (be_semi_verbose) { \ |
|
Lines 1065-1071
Link Here
|
| 1065 |
(*found_sym)++; \ |
1063 |
(*found_sym)++; \ |
| 1066 |
goto break_out; \ |
1064 |
goto break_out; \ |
| 1067 |
} \ |
1065 |
} \ |
| 1068 |
if (next_sym) free(this_sym); \ |
|
|
| 1069 |
} \ |
1066 |
} \ |
| 1070 |
} \ |
1067 |
} \ |
| 1071 |
} \ |
1068 |
} \ |