summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-04-04 23:17:58 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-04-04 23:17:58 (GMT)
commit93426d8186f591368d5a906ba33071ad94308371 (patch)
tree176ce617b6d3766405111e94e0cbb954e1a0aef5
parenta0028d2565cd3e9db1f2e7da064179688f97c5fa (diff)
binutils/binutils: hide gold option if no support for current architecture
The gold linker does currently support only a limited set of architectures: - x86 (32- and 64-bit) - ARM Hide the gold option for other architectures. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> (transplanted from 148e80538623dd4fdb7895546138eabaf5712518)
-rw-r--r--config/binutils/binutils.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in
index 6172d82..508780b 100644
--- a/config/binutils/binutils.in
+++ b/config/binutils/binutils.in
@@ -67,10 +67,20 @@ config BINUTILS_2_21_or_later
config BINUTILS_HAS_GOLD
bool
+config BINUTILS_GOLD_SUPPORTS_ARCH
+ bool
+
config BINUTILS_HAS_PLUGINS
bool
-if BINUTILS_HAS_GOLD
+# Only these architectures have support in gold
+config ARCH_arm
+ select BINUTILS_GOLD_SUPPORTS_ARCH
+
+config ARCH_x86
+ select BINUTILS_GOLD_SUPPORTS_ARCH
+
+if BINUTILS_HAS_GOLD && BINUTILS_GOLD_SUPPORTS_ARCH
choice
bool