]> git.karo-electronics.de Git - mv-sheeva.git/commit
allow stripping of generated symbols under CONFIG_KALLSYMS_ALL
authorJan Beulich <jbeulich@novell.com>
Tue, 16 Dec 2008 11:30:08 +0000 (11:30 +0000)
committerSam Ravnborg <sam@ravnborg.org>
Fri, 19 Dec 2008 21:47:10 +0000 (22:47 +0100)
commit9bb482476c6c9d1ae033306440c51ceac93ea80c
treeb5e415eee46b66d9cc39e31d29d0d02994321d11
parentad7a953c522ceb496611d127e51e278bfe0ff483
allow stripping of generated symbols under CONFIG_KALLSYMS_ALL

Building upon parts of the module stripping patch, this patch
introduces similar stripping for vmlinux when CONFIG_KALLSYMS_ALL=y.
Using CONFIG_KALLSYMS_STRIP_GENERATED reduces the overhead of
CONFIG_KALLSYMS_ALL from 245k/310k to 65k/80k for the (i386/x86-64)
kernels I tested with.

The patch also does away with the need to special case the kallsyms-
internal symbols by making them available even in the first linking
stage.

While it is a generated file, the patch includes the changes to
scripts/genksyms/keywords.c_shipped, as I'm unsure what the procedure
here is.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Makefile
arch/x86/scripts/strip-symbols [new file with mode: 0644]
init/Kconfig
kernel/kallsyms.c
scripts/genksyms/keywords.c_shipped
scripts/genksyms/keywords.gperf
scripts/kallsyms.c