This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: RFA/RFC: Enable both gold and ld in a single toolchain
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, binutils at sources dot redhat dot com, ian at airs dot com
- Date: Fri, 9 Apr 2010 09:47:53 -0700
- Subject: Re: RFA/RFC: Enable both gold and ld in a single toolchain
- References: <m3vddbao52.fsf@redhat.com> <4B961E43.9060707@ubuntu.com> <20100311004003.22ad240d@gentoo.org> <4B990213.6000300@redhat.com> <6dc9ffc81003110653n37b7f84ek8c6b8b82eef3e8bb@mail.gmail.com> <4B9FBF01.4060002@redhat.com> <20100331153100.GB7980@caradoc.them.org> <v2w6dc9ffc81003310849k46804a47mebab415c96b15036@mail.gmail.com> <4BBEE955.9000703@redhat.com> <w2q6dc9ffc81004090937pe53b440ar4d9e95650b30214b@mail.gmail.com>
On Fri, Apr 9, 2010 at 9:37 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Apr 9, 2010 at 1:46 AM, Nick Clifton <nickc@redhat.com> wrote:
>> Hi Guys,
>>
>> ?Now that the GCC mainline sources are back in stage 1, and I am back from
>> vacation, here is another revised version of the gold-and-ld patch for
>> consideration, and I hope, approval.
>>
>> ?This version fixes collect2.c so that it will build even if the
>> DEFAULT_LINKER environment variable is defined. ?It also changes the name of
>> the installed version of the gold linker to be ld.gold in order to use a
>> consistent naming scheme.
>>
>> ?OK to apply ?
>>
>> Cheers
>> ?Nick
>>
>> ./ChangeLog
>> 2010-04-09 ?Roland McGrath ?<roland@redhat.com>
>> ? ? ? ?H.J. Lu ?<hongjiu.lu@intel.com>
>>
>> ? ?* configure.ac (--enable-gold): Support both, both/gold and
>> ? ?both/bfd to add gold to configdirs without removing ld.
>> ? ?* configure: Regenerated.
>
> You didn't mention toplevel Makefile.in change. You
> should change Makefile.def and regenerate Makefile.in
> instead.
Something like
diff --git a/Makefile.def b/Makefile.def
index 7dce699..325d845 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -425,6 +425,7 @@ dependencies = { module=all-ld; on=all-build-bison; };
dependencies = { module=all-ld; on=all-build-byacc; };
dependencies = { module=all-ld; on=all-build-flex; };
dependencies = { module=all-ld; on=all-intl; };
+dependencies = { module=install-ld; on=install-gold; };
dependencies = { module=configure-gold; on=configure-intl; };
dependencies = { module=all-gold; on=all-libiberty; };
dependencies = { module=all-gold; on=all-intl; };
--
H.J.