Skip to content
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

Using lld as our linker #2317

Open
TeofilC opened this issue Feb 10, 2025 · 1 comment
Open

Using lld as our linker #2317

TeofilC opened this issue Feb 10, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@TeofilC
Copy link
Contributor

TeofilC commented Feb 10, 2025

I think we might already support lld in configurations where we use GHC with LLVM. But it would be good to have the option to use lld as our linker with the standard GCC based toolchain.

We have a flag called useLdGold. I propose we also add a useLdLld flag that enables lld instead.

Note as well that since gold is getting deprecated and removed from binutils, it might make sense to switch to lld as a standard faster than bfd linker. See: https://gitlab.haskell.org/ghc/ghc/-/issues/25716

I have a draft branch that does this (which I will upload soon), but I'd appreciate ideas about the interface for this, and when we want to enable lld by default.

@TeofilC TeofilC added the enhancement New feature or request label Feb 10, 2025
@angerman
Copy link
Collaborator

Hi @TeofilC the analog of useLdGold (as in useLdLld) seems fine. I guess we'll keep useLdGold in quite a long time just for the ability to contrast bugs well. And as long as there is a binutils with gold in a somewhat recently supported nixpkgs we can still use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants