mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
kbuild: filter away debug symbols from kernel symbols
Andi Kleen <[email protected]> reported that he saw a lot of symbols like this: 0000000000000b24 N DW.aio.h.903a6d92.2 0000000000000bce N DW.task_io_accounting.h.8d8de327.0 0000000000000bec N DW.hrtimer.h.c23659c6.0 in his System.map / kallsyms output. Simple solution is to skip all debugging symbols (they are marked 'N'). Signed-off-by: Sam Ravnborg <[email protected]> Cc: Paulo Marques <[email protected]>
This commit is contained in:
parent
1f5d3a6b65
commit
aab34ac858
2 changed files with 5 additions and 1 deletions
|
|
@ -108,6 +108,9 @@ static int read_symbol(FILE *in, struct sym_entry *s)
|
|||
/* exclude also MIPS ELF local symbols ($L123 instead of .L123) */
|
||||
else if (str[0] == '$')
|
||||
return -1;
|
||||
/* exclude debugging symbols */
|
||||
else if (stype == 'N')
|
||||
return -1;
|
||||
|
||||
/* include the type field in the symbol name, so that it gets
|
||||
* compressed together */
|
||||
|
|
|
|||
Loading…
Reference in a new issue