]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: make it possible for the linker to discard local symbols from vmlinux
authorDavid Howells <dhowells@redhat.com>
Wed, 4 Mar 2009 19:59:07 +0000 (11:59 -0800)
committerSam Ravnborg <sam@ravnborg.org>
Sat, 11 Apr 2009 06:18:10 +0000 (08:18 +0200)
commitcc5b3f260ef2e67c31371f0e1ec560af19614b9a
tree2c021642ba7bf345afaa876238a099211fd3fb1e
parent9eeaf86356e9e1c6c0a0ec0c4b30cdcbf05c6000
kbuild: make it possible for the linker to discard local symbols from vmlinux

Make it possible for the linker to discard local symbols from vmlinux as
they cause vmlinux to balloon when CONFIG_KALLSYMS=y and they cause
dump_stack() and get_wchan() to produce useless information under some
circumstances.

With this we add a config option (CONFIG_STRIP_ASM_SYMS) that will cause
the build to supply -X to the linker to tell it to strip temporary local
symbols.

This doesn't seem to cause gdb any problems.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile
init/Kconfig