gold linker

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

User avatar
lucasart
Posts: 3232
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

gold linker

Post by lucasart »

Sorry, this is more programming than chess related, but I've been googling this a bit, and could not find an answer.

I am using gcc 4.9 from the Ubuntu 14.10 repo:
- which linker am I using: GNU ld or Gold?
- how do I verify?
- if I'm using GNU ld, how do I use Gold?

With a build-system (eg. make), and LTO, it seems the linking stage is an important part of build time for the average case (ie. edit a file or two and build).
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.
Rein Halbersma
Posts: 741
Joined: Tue May 22, 2007 11:13 am

Re: gold linker

Post by Rein Halbersma »

Rein Halbersma
Posts: 741
Joined: Tue May 22, 2007 11:13 am

Re: gold linker

Post by Rein Halbersma »

To force use of the gold linker, you can hack some symlinks or add -fuse-ld=gold as a linker flag
User avatar
lucasart
Posts: 3232
Joined: Mon May 31, 2010 1:29 pm
Full name: lucasart

Re: gold linker

Post by lucasart »

thanks!
Theory and practice sometimes clash. And when that happens, theory loses. Every single time.