Skip to content

Commit d79a271

Browse files
Andi Kleensravnborg
authored andcommitted
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>
1 parent 691ef3e commit d79a271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID)
640640
LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID)
641641

642642
ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
643-
LDFLAGS_vmlinux += -X
643+
LDFLAGS_vmlinux += $(call ld-option, -X,)
644644
endif
645645

646646
# Default kernel image to build when no specific target is given.

0 commit comments

Comments
 (0)