-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Consider lld as linker on ELF (Linux) #27951
Comments
This (and more LLVM-based tools in general) might also make cross-compilation more pleasant, cc @Ericson2314 I'd also love to see |
Duplicates #24744 |
Not quite a dupe, as that one wants |
@domenkozar I don't think it's a dupe. Assuming there's consensus to go forward, I'd love to discuss next steps. Something else I'd like to add. |
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly:
|
Still important to me. |
In 2020 a new Mach-O backend was added. According to the homepage, "[t]he linker supports ELF (Unix), PE/COFF (Windows), Mach-O (macOS) and WebAssembly in descending order of completeness." While I cannot personally attest to it, I have heard good reports of people being able to use LLD for Mach-O. That being said the new hurdle is with Apple moving to AArch64 and requiring that executable binaries be code signed on the new macOS machines. (Which the system linker (ld64) does by default.) |
I marked this as stale due to inactivity. → More info |
As relevant as ever. |
I marked this as stale due to inactivity. → More info |
This can be done using the |
Issue description
lld (http://lld.llvm.org/) seems to be "mature enough", these days.
With 5.0 release, it might make sense giving a shot as it's much much faster than
ld.bfd
(which is still the default on every Linux as far as I can tell) and reasonably faster thanld.gold
.ghc recently tried it with reasonable success
https://www.reddit.com/r/haskell/comments/63y43y/liked_linking_3x_faster_with_gold_link_10x_faster/
I'll be happy to work on this (as I also work on lld/llvm) but first I want to know if it's something reasonable (& probably I'll need some guidance on how to actually implement/try this).
The text was updated successfully, but these errors were encountered: