projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
022a4a7
)
[PATCH] Strip local symbols from kallsyms
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 6 Sep 2005 22:16:41 +0000
(15:16 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 7 Sep 2005 23:57:20 +0000
(16:57 -0700)
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>
scripts/kallsyms.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/kallsyms.c
b/scripts/kallsyms.c
index 1f53d4fc4c1d445ec345bc51b43db2c48d57763b..d591578bd3b209ab8258a814b30727366e8909d8 100644
(file)
--- 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 */