ARM: avoid ARM binutils leaking ELF local symbols
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 26 Jul 2014 21:59:01 +0000 (07:29 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 27 Jul 2014 11:22:47 +0000 (20:52 +0930)
commit2e3a10a1551d6ceea005e6a62ca58183b8976217
tree1f5da7e582eaa35bd684117d11e18ebc7686c912
parenta0d8f8037468a3b5f964417f71853ccf301b9f39
ARM: avoid ARM binutils leaking ELF local symbols

Symbols starting with .L are ELF local symbols and should not appear
in ELF symbol tables.  However, unfortunately ARM binutils leaks the
.LANCHOR symbols into the symbol table, which leads kallsyms to report
these symbols rather than the real name.  It is not very useful when
%pf reports symbols against these leaked .LANCHOR symbols.

Arrange for kallsyms to ignore these symbols using the same mechanism
that is used for the ARM mapping symbols.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c