New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binutils: support custom ld #33580
binutils: support custom ld #33580
Conversation
|
Actually, perhaps this isn't the best way to do this:
Future settings that are a bit distinct from linker/CC:
( |
Closing since it's not a priority and if it's needed we can revive/discuss. |
@Ericson2314 made some provisions very recently to make the linker configurable in the stdenv (but I have not confirmed that it works). |
I think overriding the wrapper to select the default would be the easiest/cheapest. |
Also, the original motivation of this I believe was https://sourceware.org/bugzilla/show_bug.cgi?id=16177; we can just solve directly with @bgamari's rebase of the patch: https://sourceware.org/bugzilla/attachment.cgi?id=10727 |
Motivation for this change
Currently the default linker is always "bfd", this introduces a config option for specifying a different default linker.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)default:
gold:
Additionally, modifying the
cc-wrapper
test to include-Wl,-v
shows this successfully controls the linker used during compilation.