diff options
Diffstat (limited to 'config/binutils')
-rw-r--r-- | config/binutils/binutils.in | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 338220d0..030e0b9d 100644 --- a/config/binutils/binutils.in +++ b/config/binutils/binutils.in @@ -6,13 +6,23 @@ comment "GNU binutils" config BINUTILS_GOLD_SUPPORTS_ARCH bool default y if ARCH_ARM + default y if ARCH_LOONGARCH + default y if ARCH_MIPS + default y if ARCH_POWERPC + default y if ARCH_S390 + 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 ! STATIC_TOOLCHAIN + 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 @@ -30,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" @@ -128,6 +143,7 @@ config BINUTILS_LINKER_DEFAULT config BINUTILS_PLUGINS bool prompt "Enable support for plugins" + depends on !STATIC_TOOLCHAIN help binutils can be extended through the use of plugins. Especially, gold can use the lto-plugin, as installed |