klibc-bot for Ben Hutchings
2021-Dec-27 18:48 UTC
[klibc] [klibc:master] arm: Remove redundant/unsupported linker option --thumb-entry
Commit-ID: 9129392a31774e6b63ab7231f1802a094e7eb90b Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=9129392a31774e6b63ab7231f1802a094e7eb90b Author: Ben Hutchings <ben at decadent.org.uk> AuthorDate: Mon, 27 Dec 2021 18:34:09 +0100 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Mon, 27 Dec 2021 18:53:48 +0100 [klibc] arm: Remove redundant/unsupported linker option --thumb-entry Both GNU ld (since binutils 2.14) and LLD automatically set the Thumb flag bit on the entry address when needed. Further, LLD doesn't support the --thumb-entry option, so we should not use it. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/arch/arm/MCONFIG | 2 -- 1 file changed, 2 deletions(-) diff --git a/usr/klibc/arch/arm/MCONFIG b/usr/klibc/arch/arm/MCONFIG index dabefc54..41f39a0e 100644 --- a/usr/klibc/arch/arm/MCONFIG +++ b/usr/klibc/arch/arm/MCONFIG @@ -18,8 +18,6 @@ KLIBCSTRIPFLAGS += -R .ARM.exidx ifeq ($(CONFIG_KLIBC_THUMB),y) CPU_ARCH := $(CPU_ARCH)t KLIBCREQFLAGS += -mthumb -KLIBCLDFLAGS += --thumb-entry _start -KLIBCEMAIN = --thumb-entry main KLIBCREQFLAGS += -mabi=aapcs-linux KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0x380000 else