@@ -137,6 +137,21 @@ static bool is_ignored_symbol(const char *name, char type)
137
137
return true;
138
138
}
139
139
140
+ if (type == 'U' || type == 'u' )
141
+ return true;
142
+ /* exclude debugging symbols */
143
+ if (type == 'N' || type == 'n' )
144
+ return true;
145
+
146
+ if (toupper (type ) == 'A' ) {
147
+ /* Keep these useful absolute symbols */
148
+ if (strcmp (name , "__kernel_syscall_via_break" ) &&
149
+ strcmp (name , "__kernel_syscall_via_epc" ) &&
150
+ strcmp (name , "__kernel_sigtramp" ) &&
151
+ strcmp (name , "__gp" ))
152
+ return true;
153
+ }
154
+
140
155
return false;
141
156
}
142
157
@@ -188,21 +203,6 @@ static int read_symbol(FILE *in, struct sym_entry *s)
188
203
else if (check_symbol_range (sym , s -> addr , text_ranges ,
189
204
ARRAY_SIZE (text_ranges )) == 0 )
190
205
/* nothing to do */ ;
191
- else if (toupper (stype ) == 'A' )
192
- {
193
- /* Keep these useful absolute symbols */
194
- if (strcmp (sym , "__kernel_syscall_via_break" ) &&
195
- strcmp (sym , "__kernel_syscall_via_epc" ) &&
196
- strcmp (sym , "__kernel_sigtramp" ) &&
197
- strcmp (sym , "__gp" ))
198
- return -1 ;
199
-
200
- }
201
- else if (toupper (stype ) == 'U' )
202
- return -1 ;
203
- /* exclude debugging symbols */
204
- else if (stype == 'N' || stype == 'n' )
205
- return -1 ;
206
206
207
207
/* include the type field in the symbol name, so that it gets
208
208
* compressed together */
0 commit comments