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

Matthias Klose doko@ubuntu.com
Sun Mar 21 11:51:00 GMT 2010


On 16.03.2010 18:25, Nick Clifton wrote:
> Hi H.J.
>
>> -fuse-ld is misleading. ld may be gold. How about
>> "-fuse-ld=[gold|bfd]" which
>> is consistent with linker names and configure options.
>
> A good point. I have attached a revised patch with the option named as
> you suggest. I also omitted to include your name and Roland's in the
> ChangeLog entries, so I have updated those as well.
>
> Any other issues with the patch ?

trying to use -fuse-ld=gold without having gold installed, prints:

   $ gcc -fuse-ld=gold main.c
   collect2: cannot find 'ld'

which may be misleading, only with -Wl,-debug collect2 is able to print the 
better diagnostic message. Maybe not worth for delaying the patch.

   Matthias



More information about the Binutils mailing list