3

MSVC targets should use COFF as their archive format by dpaoliello · Pull Reques...

 1 month ago
source link: https://github.com/rust-lang/rust/pull/123467
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation

Contributor

While adding support for Arm64EC I ran into an issue where the standard library's rlib was missing the "EC Symbol Table" which is required for the MSVC linker to find import library symbols (generated by Rust's raw-dylib feature) when building for EC.

The root cause of the issue is that LLVM only generated symbol tables (including the EC Symbol Table) if the ArchiveKind is COFF, but the MSVC targets didn't set their archive format, so it was defaulting to GNU.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK