Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335744 - Add dual-linker support to binutils-config
Summary: Add dual-linker support to binutils-config
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 01:07 UTC by Raymes Khoury
Modified: 2010-09-04 17:16 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to add dual-linker support to binutils-config (binutils-config.patch,2.01 KB, patch)
2010-09-03 01:08 UTC, Raymes Khoury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raymes Khoury 2010-09-03 01:07:07 UTC
Currently, the only way to specify which linker should be used by gcc is to pass the -B/path/to/dir/containing/linker option. Binutils now has an option to allow dual linkers (ld.gold and ld.bfd) to be installed simultaneously by passing a configure option (--enable-gold=both). However, these are installed in the same directory. By creating symlinks that are in separate directories when installing binutils, the -B option can be used to specify the linker.

Reproducible: Always




A patch to add this functionality will be attached.
Comment 1 Raymes Khoury 2010-09-03 01:08:35 UTC
Created attachment 245815 [details, diff]
Patch to add dual-linker support to binutils-config
Comment 2 SpanKY gentoo-dev 2010-09-04 17:16:59 UTC
upstream gcc is already looking at adding a -fuse-ld= option.  no point in hacking things via binutils-config.