From: Ralf Baechle Date: Tue, 6 Sep 2005 22:16:41 +0000 (-0700) Subject: [PATCH] Strip local symbols from kallsyms X-Git-Tag: v2.6.14-rc1~725 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f00df24ee394f345a8789d3a2f98fc1d9195b9f;p=linux-2.6 [PATCH] Strip local symbols from kallsyms Local symbols generated by gcc start with a `$'; no point in including them in the kernel. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 1f53d4fc4c..d591578bd3 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -116,6 +116,9 @@ static int read_symbol(FILE *in, struct sym_entry *s) else if (toupper(stype) == 'U' || is_arm_mapping_symbol(sym)) return -1; + /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */ + else if (str[0] == '$') + return -1; /* include the type field in the symbol name, so that it gets * compressed together */