-
Notifications
You must be signed in to change notification settings - Fork 12.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
MinGW: improve compatibility with LLD #70852
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
Updated description, it was PEBCAK and this PR doesn't help with #50176 |
a0cf890
to
809aa16
Compare
@bors r+ |
📌 Commit 809aa16c40d962c7a5090223a5ce98cd57ee233e has been approved by |
This greatly improves compatibility with LLD which is not going to support linker scripts anytime soon
Just noticed that the commit message was malformed, sorry for the trouble. |
@petrochenkov could you |
@bors r+ |
📌 Commit 44e602f has been approved by |
⌛ Testing commit 44e602f with merge 54fd296879f8ec8875d2aaf5735bc395c701ad83... |
💔 Test failed - checks-azure |
It's much worse than I thought. I'll see if I can implement |
😆 |
It does support it at least to some extent. Either the .def file needs some more work on it or it's just bugged. Regressions I have found:
|
Another attempt at |
LLD unlike LD doesn't implement linker script support for MinGW and this has so low priority it may be never implemented. However they both support MSVC like .def files.
Once this and rust-lang/cargo#6875 reach beta and bootstrap compiler is updated using LLD as the linker will work fine.