summaryrefslogtreecommitdiff
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-05-19 22:07:58 +0400
committerSam Ravnborg <sam@ravnborg.org>2008-05-19 22:07:58 +0400
commitaab34ac8582303ef57b792710fc5dd5991477475 (patch)
treee94e6dd86f1543db0b57cb200a97c3bfa35e54a7 /scripts/kallsyms.c
parent1f5d3a6b6532e25a5cdf1f311956b2b03d343a48 (diff)
downloadlinux-aab34ac8582303ef57b792710fc5dd5991477475.tar.xz
kbuild: filter away debug symbols from kernel symbols
Andi Kleen <andi@firstfloor.org> 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 <sam@ravnborg.org> Cc: Paulo Marques <pmarques@grupopie.com>
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 5d20a2e24cd1..ad2434b26970 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -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 */