RFR: JDK-8217723 Switch ld from bfd to gold on gcc toolchain

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Thu Jan 24 13:28:41 UTC 2019


On 2019-01-24 14:20, John Paul Adrian Glaubitz wrote:
> On 1/24/19 2:11 PM, Magnus Ihse Bursie wrote:
>> The default binutils linker used by gcc, the bfd linker, is slow.
>> The new replacement, gold, has been distributed alongside gcc for
>> several years now, and is a well mature, and much faster, replacement.
> I would recommend testing this change on all supported targets. Gold is
> definitely not as mature on all targets as bfd in my experience. There
> are still some cases where it can cause issues.
Good point.

I was mainly considering x86_64 here. It might be safest to limit the 
use of gold to this platform. From the developer point of view, it's the 
one that counts most.

But even if I change this to only use gold on x86_64, I'd still like to 
bump the binutils version globally. There's no good way to express 
different version requirements on different platforms for the same 
toolchain. Do you see a problem with that?

/Magnus


>
> Adrian
>




More information about the build-dev mailing list