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>
Showing
- Makefile 35 additions, 12 deletionsMakefile
- arch/x86/scripts/strip-symbols 1 addition, 0 deletionsarch/x86/scripts/strip-symbols
- init/Kconfig 7 additions, 0 deletionsinit/Kconfig
- kernel/kallsyms.c 6 additions, 10 deletionskernel/kallsyms.c
- scripts/genksyms/keywords.c_shipped 96 additions, 93 deletionsscripts/genksyms/keywords.c_shipped
- scripts/genksyms/keywords.gperf 2 additions, 0 deletionsscripts/genksyms/keywords.gperf
- scripts/kallsyms.c 8 additions, 13 deletionsscripts/kallsyms.c
Loading
Please register or sign in to comment