aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-09-06 18:16:41 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-07 19:57:20 -0400
commit6f00df24ee394f345a8789d3a2f98fc1d9195b9f (patch)
tree5370b391ad05cd98bd189e163e209a4b076f4bb7 /scripts
parent022a4a7bbdefdedc2706a13c81c832d8c3173c6d (diff)
[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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kallsyms.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 1f53d4fc4c1d..d591578bd3b2 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -116,6 +116,9 @@ static int read_symbol(FILE *in, struct sym_entry *s)
116 else if (toupper(stype) == 'U' || 116 else if (toupper(stype) == 'U' ||
117 is_arm_mapping_symbol(sym)) 117 is_arm_mapping_symbol(sym))
118 return -1; 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 /* include the type field in the symbol name, so that it gets 123 /* include the type field in the symbol name, so that it gets
121 * compressed together */ 124 * compressed together */