When building Lazarus on Linux, is there an easy way to tell fpc to use gold rather than ld to get comparative timings?
Mailing lists / lazarus / 2011-06
Alternative linker
7 messages · 4 people · –
- MMark Morgan Lloyd 4
- AAndrew Haines 1
- Lleledumbo 1
- MMarco van de Voort 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
You can try fooling the compiler by making ld symlink to gold (of course you better back up your real ld)
When building Lazarus on Linux, is there an easy way to tell fpc to use gold rather than…
Mark Morgan Lloyd wroteWhen building Lazarus on Linux, is there an easy way to tell fpc to use gold rather than ld to get comparative timings?
If you compile your program with -s a "ppas.sh" file will be generated which you can edit and then run to link the program.
Regards,
Andrew
Andrew Haines wrote 8 lines
Thanks, but that's something I specifically don't want to do since I'm trying to get a reproducible time for building Lazarus on a very tight system.
You can try fooling the compiler by making ld symlink to gold (of course you better back…
leledumbo wroteYou can try fooling the compiler by making ld symlink to gold (of course you better back up your real ld)
Thanks, that had occurred to me. As a general point I notice that in the case of Debian ld is a symlink internal to /usr/bin, rather than going through /etc/default which is their normal convention.
In practice it looks as though as of binutils 2.20.1 gold is only being shipped for x86, and I don't want to know the answer to the extent that I'll start investigating why.
Thanks, but that's something I specifically don't want to do since I'm trying to get a…
Mark Morgan Lloyd wrote 5 lines
Pass parameter -XPnonsense- and make a symlink of nonsense-as, nonsense-ar and nonsense-ld to the ones you want.
Marco van de Voort wrote 8 lines
Thanks Marco, noted.
