http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52982
Bug #: 52982
Summary: add option to select particular linker
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: driver
AssignedTo: [email protected]
ReportedBy: [email protected]
If one has both ld and gold installed, gcc gives little help in letting someone
choose one or the other for a particular link job. (Systemwide relinking a la
alternatives(1), or forcing creation of a temporary -B directory, are not
convenient.)
Please consider adding an option to the driver, akin to -Wl... to allow
overriding of the ld binary being invoked. Perhaps: gcc -Wl=/bin/ld.gold
(and similar options for -Wa=, -Wp= could make sense).