aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2009-03-04 14:59:07 -0500
committerSam Ravnborg <sam@ravnborg.org>2009-04-11 02:18:10 -0400
commit5d7d18f5bc507b60d3d8967e2739d5e6ffdd630f (patch)
tree2c021642ba7bf345afaa876238a099211fd3fb1e /Makefile
parent0fa3a88cfdfc910d7f335aef588edf9819c05d54 (diff)
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3e95d454285c..ad830bd45a4b 100644
--- a/Makefile
+++ b/Makefile
@@ -597,6 +597,10 @@ LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\
597LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) 597LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
598LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) 598LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
599 599
600ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
601LDFLAGS_vmlinux += -X
602endif
603
600# Default kernel image to build when no specific target is given. 604# Default kernel image to build when no specific target is given.
601# KBUILD_IMAGE may be overruled on the command line or 605# KBUILD_IMAGE may be overruled on the command line or
602# set in the environment 606# set in the environment