compiler-builtins: Enable AArch64 __chkstk for MinGW

Similarly to i686 and X86_64 MinGW targets, Rust needs to provide the
right chkstk symbol for AArch64 to avoid relying on the linker to
provide it.

CC https://github.com/rust-lang/rust/issues/150725
This commit is contained in:
Mateusz Mikuła 2026-01-07 14:27:27 +01:00 committed by Trevor Gross
parent 65639fe0dc
commit 69bedd10d2

View file

@ -4,7 +4,7 @@ use core::intrinsics;
intrinsics! {
#[unsafe(naked)]
#[cfg(target_os = "uefi")]
#[cfg(any(all(windows, target_env = "gnu"), target_os = "uefi"))]
pub unsafe extern "custom" fn __chkstk() {
core::arch::naked_asm!(
".p2align 2",