Commit 6f00df24ee394f345a8789d3a2f98fc1d9195b9f
Committed by
Linus Torvalds
1 parent
022a4a7bbd
Exists in
master
and in
7 other branches
[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 <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
scripts/kallsyms.c
... | ... | @@ -116,6 +116,9 @@ |
116 | 116 | else if (toupper(stype) == 'U' || |
117 | 117 | is_arm_mapping_symbol(sym)) |
118 | 118 | return -1; |
119 | + /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */ | |
120 | + else if (str[0] == '$') | |
121 | + return -1; | |
119 | 122 | |
120 | 123 | /* include the type field in the symbol name, so that it gets |
121 | 124 | * compressed together */ |