add support for the l4-bender linker on the x86_64-unknown-l4re-uclibc tier 3 target by atopia · Pull Request #85967 · rust-lang/rust (original) (raw)

Here's the version of this PR, but without introducing a new linker flavor - petrochenkov@d3b02f3
It highlights the differences from a regular gcc-style linker, I left questions about them in code.
Most of them are related to the comma vs whitespace story which is still not clear to me.
If l4-bender simply passes the arguments after -- to the underlying linker, then why does e.g. -z relro needs to be changed to -z,relro?

Also, if there are some issues with passing arguments with whitespaces, then it's better to make a separate issue (with examples from practice, showing how they behave now, and how they should behave instead) and solve it once and for all, instead of introducing more hacks for specific targets.

r? @petrochenkov