RFA/RFC: Enable both gold and ld in a single toolchain

Nick Clifton nickc@redhat.com
Thu Mar 11 14:53:00 GMT 2010


Hi Guys,

   OK - I have revised the patch yet again.  This version uses H.J.'s 
name for the bfd based linker (ld.bfd) and changes the switches that 
selects between gold and ld.bfd to be -fuse-gold and -fuse-ld (or 
-fuse-ld.bfd).

   x86 bootstrapping is still OK.

   Any more suggestions or comments ?

Cheers
   Nick

./ChangeLog
2010-03-04  Nick Clifton  <nickc@redhat.com>

	* configure.ac (--enable-gold): Accept a parameter of "both",
         "both/gold" or "both/ld".  If any of these values are given
         then configure both ld and gold.
         * configure: Regenerate.

gcc/ChangeLog
2010-03-04  Nick Clifton  <nickc@redhat.com>

	* configure.ac (gcc_cv_gold_srcdir): New cached variable -
	contains the location of the gold sources.
         (ORIGINAL_GOLD_FOR_TARGET): New substituted variable - contains
	the name of the locally built gold executable.
         * configure: Regenerate.
         * collect2.c (main): Detect the -use-gold and -use-ld switches
	and select the appropriate linker, if found.
         * exec-tool.in: Detect the -use-gold and -use-ld switches and
         select the appropriate linker, if found.
	Add support for -v switch.
	Report problems locating linker executable.
	* gcc.c (LINK_COMMAND_SPEC): Translate -fuse-gold into
	-use-gold and -fuse-ld into -use-ld.
	* common.opt: Add fuse-gold, fuse-ld and fuse-ld.bfd
	* opts.c (comman_handle_option): Ignore -fuse-gold, -fuse-ld
         and -fuse-ld.bfd.
	* doc/invoke.texi: Document the new options.

gold/ChangeLog
2010-03-04  Nick Clifton  <nickc@redhat.com>

	* configure.ac (install_as_default): Define and set to false
	unless --enable-gold or --enable-gold=both/gold has been
	specified.
	* configure: Regenerate.
	* Makefile.am (install-exec-local): Install the executable as 	
	"gold".  If install_as_default is true then also install it as 	
	"ld".
         * Makefile.in: Regenerate.

ld/ChangeLog
2010-03-04  Nick Clifton  <nickc@redhat.com>

	* configure.in (install_as_default): Define and set to true
	unless --enable-gold=both/gold has been specified.
	* configure: Regenerate.
	* Makefile.am (transform): Use ld.bfd as the default name of
	the linker.
	(install-exec-local): Also install the executable as a binary
	named 'ld' if install_as_default is true.
	* Makefile.in: Regenerate.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold-and-ld.patch.3
Type: application/x-troff-man
Size: 24512 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20100311/bd8ecb58/attachment.3>


More information about the Binutils mailing list