FS#59297 - [binutils] make /usr/bin/ld symlinking to /usr/bin/ld.bfd

Attached to Project: Arch Linux
Opened by Leonidas Spyropoulos (inglor) - Wednesday, 11 July 2018, 07:02 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 11 July 2018, 07:43 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Currently the /usr/bin/ld and the /usr/bin/ld.bfd are the same file. Since at least another linker (/usr/bin/ld.gold) is included the /usr/bin/ld should be a symlink to one of them. Then one can switch between them as {s}he wish. As a side effect you can save a some MB os size used.

Additional info:
* package version(s): 2.30-5


Steps to reproduce:
ls -l /usr/bin/ld*
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 11 July 2018, 07:43 GMT
Reason for closing:  Not a bug
Comment by Doug Newgard (Scimmia) - Wednesday, 11 July 2018, 07:19 GMT
It's a hardlink, so there's no savings to be had. If you want to use a different linker, you tell the build system or compiler to use it, you don't screw with symlinks.
Comment by Leonidas Spyropoulos (inglor) - Wednesday, 11 July 2018, 07:41 GMT
Thanks Doug, missed the hardlink bit! I'll use the compiler options, cheers!

Loading...