Skip to content

Commit 0f1fe9d

Browse files
committed
Revert "kbuild: Check if linker supports the -X option"
This reverts commit d79a271. According to the commit description, this ld-option test was added for the gold linker at that time. Commit 75959d4 ("kbuild: Fail if gold linker is detected") gave up the gold linker support after all. I tested the BFD linker from binutils 2.23 and LLD from LLVM 11.0.0. Both of them support the -X option. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 5d4aeff commit 0f1fe9d

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
@@ -1037,7 +1037,7 @@ KBUILD_LDFLAGS += $(call ld-option,--no-warn-rwx-segments)
10371037
endif
10381038

10391039
ifeq ($(CONFIG_STRIP_ASM_SYMS),y)
1040-
LDFLAGS_vmlinux += $(call ld-option, -X,)
1040+
LDFLAGS_vmlinux += -X
10411041
endif
10421042

10431043
ifeq ($(CONFIG_RELR),y)

0 commit comments

Comments
 (0)