diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-05 01:17:58 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-04-05 01:17:58 +0200 |
commit | b596e9838f70a67971326417e83765105e79ea50 (patch) | |
tree | 3020a836f18825f8131e5ff18f62d0811fe710b9 /config/binutils | |
parent | 693cc01f41fb353bd6dca545d9f561a1419b7406 (diff) | |
download | crosstool-ng-b596e9838f70a67971326417e83765105e79ea50.tar.gz crosstool-ng-b596e9838f70a67971326417e83765105e79ea50.tar.bz2 crosstool-ng-b596e9838f70a67971326417e83765105e79ea50.zip |
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>
Diffstat (limited to 'config/binutils')
-rw-r--r-- | config/binutils/binutils.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in index 6172d825..508780bb 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 |