https://bugzilla.redhat.com/show_bug.cgi?id=2449216



--- Comment #40 from [email protected] ---
The multiple version scripts thing is a hack I use to get around the lack of
support for symbol versioning in Rust[1], so I'm not sure it's worth adding a
GNU ld feature just for that hack. My impression is that it replaces the
version script because the default Rust one uses anonymous version nodes but
the one for libpathrs uses named ones and usually linkers don't accept both (at
least GNU ld doesn't). Again, this is not ideal -- ideally Rust would natively
support this and there would just be one version script generated by rustc that
combines my symbol version nodes and its own internal version script data.

As I outlined above, I had a different hack to use GNU ld by creating a shell
script wrapper for ld and collect2 to remove the problematic --version-script
argument before passing things to ld, but there were other issues with that
setup that felt a bit more fundamental (basically the symbol versions were
completely broken, I don't remember the exact details so I would need to try to
reproduce the issues again...).

One of the other concerns flagged by the Rust folks was that symbol versioning
and LTO have very poor interactions (even in LLD) and so it's possible that
this is just a hard problem and LLD happens to work well-enough-ish but GNU ld
happens to have a few different issues. I'm not sure.

[1]:
https://internals.rust-lang.org/t/support-symbol-versioning-with-export-name/23626


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
https://bugzilla.redhat.com/show_bug.cgi?id=2449216

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202449216%23c40

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to