Commit d79a27195a33f4b5e591de5536799ad874ea6cf5

Authored by Andi Kleen
Committed by Sam Ravnborg
1 parent 691ef3e7fd

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -640,7 +640,7 @@
640 640 LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
641 641  
642 642 ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
643   -LDFLAGS_vmlinux += -X
  643 +LDFLAGS_vmlinux += $(call ld-option, -X,)
644 644 endif
645 645  
646 646 # Default kernel image to build when no specific target is given.