-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Linking broken on arm64ec due to __rust_alloc_error_handler_should_panic symbol #143253
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-allocatorsArea: Custom and system allocatorsArea: Custom and system allocatorsA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-allocatorsArea: Custom and system allocatorsArea: Custom and system allocatorsA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.O-AArch64Armv8-A or later processors in AArch64 modeArmv8-A or later processors in AArch64 modeO-windows-msvcToolchain: MSVC, Operating system: WindowsToolchain: MSVC, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Attempting to link any program on the arm64ec target yields
I think this was broken by #140809, more specifically 0cdd7f5 which started exporting all
#[rustc_std_internal_symbol]symbols.__rust_alloc_error_handler_should_panicis a static, but is erroneously marked as a function and that breaks mangling. I've tried to draft a PR to mark it asData, but I think might encounter the same problems as what eventually lead to #141061 and I'm not qualified to judge that.cc @dpaoliello
Versions
My CI has passed on
rustc 1.90.0-nightly (b03b3a7ec 2025-06-26)and now fails onrustc 1.90.0-nightly (35f603652 2025-06-29). I don't really have access to an ARM64 Windows machine other than that, but this is probably enough info? Here's the relevant Actions job.@rustbot label +A-allocators +A-linkage +O-AArch64 +O-windows-msvc +T-compiler -needs-triage