aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndi Kleen <andi@firstfloor.org>2009-09-16 16:36:55 -0400
committerSam Ravnborg <sam@ravnborg.org>2009-09-20 06:27:42 -0400
commitd79a27195a33f4b5e591de5536799ad874ea6cf5 (patch)
treee90e9340bc57f172c81ec6a8dd096a812d47014c /Makefile
parent691ef3e7fdc1fe4dded169d9404f740987f67d66 (diff)
kbuild: Check if linker supports the -X option
The new alternative `gold' linker in recent binutils doesn't support the -X option. This breaks allyesconfig builds that have CONFIG_STRIP_ASM_SYMS enabled. Check if the linker really supports the option using ld-option. Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d04ad671147e..a3b7770b2cdd 100644
--- a/Makefile
+++ b/Makefile
@@ -640,7 +640,7 @@ LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
640LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) 640LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
641 641
642ifeq ($(CONFIG_STRIP_ASM_SYMS),y) 642ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
643LDFLAGS_vmlinux += -X 643LDFLAGS_vmlinux += $(call ld-option, -X,)
644endif 644endif
645 645
646# Default kernel image to build when no specific target is given. 646# Default kernel image to build when no specific target is given.