From b49e4c689c4dc8e9c8da5b8f56d7ddf59e485d3b Mon Sep 17 00:00:00 2001 From: Hans-Christian Noren Egtvedt Date: Tue, 22 Apr 2025 14:41:19 +0200 Subject: binutils: add version 2.44 https://lists.gnu.org/archive/html/info-gnu/2025-02/msg00001.html Add the new version rebasing the patches we carry on top. Drop patches to gold, since this linker has been removed from upstream. Add a new Kconfig entry that removes visibility of enabling gold linker when selecting binutils version >= 2.44. Signed-off-by: Hans-Christian Noren Egtvedt --- config/binutils/binutils.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'config/binutils/binutils.in') diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index af321524..030e0b9d 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -13,10 +13,16 @@ config BINUTILS_GOLD_SUPPORTS_ARCH default y if ARCH_SPARC default y if ARCH_X86 +# Support for gold was deprecated and removed from binutils 2.44. +config BINUTILS_HAS_GOLD + bool + default y if !BINUTILS_2_44_or_later + default y if !BINUTILS_SRC_RELEASE + config BINUTILS_GOLD_SUPPORT bool default y - depends on BINUTILS_GOLD_SUPPORTS_ARCH + depends on BINUTILS_GOLD_SUPPORTS_ARCH && BINUTILS_HAS_GOLD # Force using the BFD linker if needed. There are two options: # - For some C libraries (eg. glibc at least), BFD ld must be @@ -34,6 +40,11 @@ config BINUTILS_DEP_BISON depends on BINUTILS_2_39_or_later && !CONFIGURE_has_bison_3_0_4_or_newer && (ARCH_X86 || (ARCH_ARM && ARCH_64)) select COMP_TOOLS_BISON +if BINUTILS_2_44_or_later && BINUTILS_GOLD_SUPPORT && !BINUTILS_SRC_RELEASE +comment "WARNING! For binutils >= 2.44 only enable gold support if supplied" +comment "| through custom source tree." +endif + choice bool prompt "Linkers to enable" -- cgit v1.2.3