This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


On Fri, Apr 9, 2010 at 9:47 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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; };
>
>

Here is the updated patch for ld and gold, excluding gcc.



-- 
H.J.

Attachment: binutils-gold-8.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]