Skip to content

Commit

Permalink
[PATCH] Strip local symbols from kallsyms
Browse files Browse the repository at this point in the history
Local symbols generated by gcc start with a `$'; no point in including them
in the kernel.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Ralf Baechle authored and Linus Torvalds committed Sep 7, 2005
1 parent 022a4a7 commit 6f00df2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 6f00df2

Please sign in to comment.