summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-12-29 17:19:40 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-12-29 17:19:40 (GMT)
commit2841bb7a35cbdaa7ed68d078880f199319b083c8 (patch)
tree95ac7160114baa328b8188129890b80d2999273d /config
parent8a952d18e0f650829b60be72f051cadf0fc9e247 (diff)
binutils/binutils: add wrapper to gold and ld
When both gold and ld are installed, add a wrapper that calls to either gold or ld. In case the wrapper is installed, we also need to symlink ld.bfd and ld.gold for the core_cc steps. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'config')
-rw-r--r--config/binutils/binutils.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/binutils/binutils.in b/config/binutils/binutils.in
index 2ccba5c..590bf98 100644
--- a/config/binutils/binutils.in
+++ b/config/binutils/binutils.in
@@ -100,6 +100,7 @@ config BINUTILS_LINKER_LD_GOLD
depends on BINUTILS_HAS_GOLD
depends on EXPERIMENTAL
select BINUTILS_GOLD_INSTALLED
+ select BINUTILS_LINKER_BOTH
help
Both the historical ld and the new gold linkers will be
installed, with ld being the default linker used.
@@ -112,6 +113,7 @@ config BINUTILS_LINKER_GOLD_LD
depends on BINUTILS_HAS_GOLD
depends on EXPERIMENTAL
select BINUTILS_GOLD_INSTALLED
+ select BINUTILS_LINKER_BOTH
help
Both the historical ld and the new gold linkers will be
installed, with gold being the default linker used.
@@ -131,6 +133,9 @@ config BINUTILS_GOLD_THREADS
When configured with threads, gold can link in parallel,
possibly cooperating with a make jobserver.
+config BINUTILS_LINKER_BOTH
+ bool
+
config BINUTILS_LINKERS_LIST
string
default "ld" if BINUTILS_LINKER_LD
@@ -138,6 +143,25 @@ config BINUTILS_LINKERS_LIST
default "ld,gold" if BINUTILS_LINKER_LD_GOLD
default "gold,ld" if BINUTILS_LINKER_GOLD_LD
+config BINUTILS_LD_WRAPPER
+ bool
+ prompt "| Add ld wrapper"
+ depends on BINUTILS_LINKER_BOTH
+ help
+ Add an ld wrapper that calls to either gold or ld.
+
+ By default, the wrapper will call to the default wrapper,
+ but if you set the environment variable CTNG_LD_IS, you
+ can change which linker will get called:
+ CTNG_LD_IS=gold will unconditionally call the gold linker
+ CTNG_LD_IS=bfd will unconditionally call the old bfd ld linker
+
+config BINUTILS_LINKER_DEFAULT
+ string
+ depends on BINUTILS_LD_WRAPPER
+ default "bfd" if BINUTILS_LINKER_LD_GOLD
+ default "gold" if BINUTILS_LINKER_GOLD_LD
+
endif # BINUTILS_HAS_GOLD
config BINUTILS_PLUGINS