Skip to content

Fix i686 MSVC linking by handling name mangling#245

Merged
Shnatsel merged 1 commit intorust-secure-code:masterfrom
zanieb:zb/i686-win-ii
Mar 4, 2026
Merged

Fix i686 MSVC linking by handling name mangling#245
Shnatsel merged 1 commit intorust-secure-code:masterfrom
zanieb:zb/i686-win-ii

Conversation

@zanieb
Copy link
Contributor

@zanieb zanieb commented Mar 4, 2026

The object crate's CoffI386 mangling adds a _ prefix to symbols, so the /INCLUDE: linker argument needs _AUDITABLE_VERSION_INFO to match.

See https://github.com/gimli-rs/object/blob/916c47b90e5c0bea139ca4bdfc53811f7d2c3383/src/write/mod.rs#L1105-L1137

This resolves errors like

 LINK : error LNK2001: unresolved external symbol AUDITABLE_VERSION_INFO␍

This is a subset of #242 — I think we should consider the more complex @feat.00 fix separately.

@Shnatsel Shnatsel merged commit e7e15de into rust-secure-code:master Mar 4, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants