Bug 10938 - There should be a way for ld and gold to coexist
Summary: There should be a way for ld and gold to coexist
Status: RESOLVED FIXED
Alias: None
Product: binutils
Classification: Unclassified
Component: gold (show other bugs)
Version: 2.21
: P2 normal
Target Milestone: ---
Assignee: Ian Lance Taylor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 18:17 UTC by Bernhard Rosenkraenzer
Modified: 2010-06-02 14:27 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Rosenkraenzer 2009-11-10 18:17:58 UTC
gold is faster and a few things (e.g. llvm) have started to require it -- but at the moment, it isn't 
possible to build everything with gold (e.g. gold can't link glibc, building VirtualBox with gold seems to 
cause corrupted debug info, ...).

Distributions are starting to come up with hacks to make both coexist (e.g. suse seems to have 
/usr/bin/ld==old ld, /usr/bin/gold==gold, hacked in gcc option to make it use gold on request, using 
traditional ld by default; we're thinking about /usr/bin/ld==gold, /usr/bin/gnuld==old ld, hacked in gcc 
option to make it use gnuld on request, using gold by default).

To prevent lots of incompatible hacks to make a coexistence of ld and gold possible, one way 
should be added upstream.
Comment 1 H.J. Lu 2009-11-10 21:04:36 UTC
You can try:

http://sourceware.org/ml/binutils/2009-11/msg00035.html

I will use it to enable gold in the next Linux binutils.
Comment 2 Michal Nowak 2009-11-30 14:59:50 UTC
Looks like there were several patches upstream for this issue but none of them
made it upstream. I can see that Fedora added former Roland's patch recently.
What's the status here?
Comment 3 H.J. Lu 2010-06-02 14:27:05 UTC
Fixed.