[PATCH 0 of 3] Add support for using gold instead of ld

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Mon Dec 27 23:33:00 GMT 2010

Hello All!

This patchset is a tentative at using gold in place of ld with recent
binutils (2.21 at least).

Currently, glibc can not be built with gold (fails on the ld version
check), and uClibc builds fine with a minor edit in the linker flags
(which is already applied upstream).

Basically, the patch series adds support for building gold or ld or
both, and in the latter case, set which is the default. It also adds
a (shell) wrapper that can override the default at runtime.

 binutils/binutils: add BINUTILS_2_21_or_later blind option
 binutils/binutils: add option to enable gold
 binutils/binutils: add wrapper to gold and ld

 b/config/binutils/binutils.in           |   88    88     0     0 ++++++++++++++++++++++++++++++++
 b/scripts/build/binutils/binutils-ld.in |   11    11     0     0 ++++
 b/scripts/build/binutils/binutils.sh    |   37    36     1     0 +++++++++++++
 3 files changed, 135 insertions(+), 1 deletion(-)

- add a C wrapper, for systems which may lack a shell (eg. mingw)
- _maybe_ backport uClibc patch to make it build with gold

Comments welcome.

Yann E. MORIN.

For unsubscribe information see http://sourceware.org/lists.html#faq

More information about the crossgcc mailing list