LLVM name mangling workaround \x01 seems broken #110294
Labels
A-linkage
Area: linking into static, shared libraries and binaries
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
O-windows
Operating system: Windows
P-low
Low priority
regression-from-stable-to-stable
Performance or correctness regression from one stable version to another.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I think #96444 might have broken the #[export_name = "\x01..."] LLVM workaround for avoiding the "@xyz" name mangling on x86. Compiling the following with
i686-pc-windows-msvc
results inerror LNK2001: unresolved external symbol _☺test1@0
:I stumbled upon this when trying to use the
\x01
workaround to specify the_aulldiv
symbol, which the MSVC linker expects to be named__aulldiv
(instead of__aulldiv@16
) in#![no_std]
x86 Windows crates.The text was updated successfully, but these errors were encountered: