1--- /tmp/x86.rs	2024-04-25 23:47:26.697256628 +0000
2+++ x86.rs	2024-04-25 23:47:33.253251743 +0000
3@@ -11,8 +11,7 @@
4 intrinsics! {
5     #[naked]
6     #[cfg(all(
7-        windows,
8-        target_env = "gnu",
9+        any(all(windows, target_env = "gnu"), target_os = "uefi"),
10         not(feature = "no-asm")
11     ))]
12     pub unsafe extern "C" fn ___chkstk_ms() {
13@@ -41,8 +40,7 @@
14     // FIXME: __alloca should be an alias to __chkstk
15     #[naked]
16     #[cfg(all(
17-        windows,
18-        target_env = "gnu",
19+        any(all(windows, target_env = "gnu"), target_os = "uefi"),
20         not(feature = "no-asm")
21     ))]
22     pub unsafe extern "C" fn __alloca() {
23@@ -54,8 +52,7 @@
24
25     #[naked]
26     #[cfg(all(
27-        windows,
28-        target_env = "gnu",
29+        any(all(windows, target_env = "gnu"), target_os = "uefi"),
30         not(feature = "no-asm")
31     ))]
32     pub unsafe extern "C" fn ___chkstk() {
33