Skip to content

Commit

Permalink
Revert "kbuild: Check if linker supports the -X option"
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Oct 2, 2022
1 parent 5d4aeff commit 0f1fe9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ KBUILD_LDFLAGS += $(call ld-option,--no-warn-rwx-segments)
endif

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

ifeq ($(CONFIG_RELR),y)
Expand Down

0 comments on commit 0f1fe9d

Please sign in to comment.