[PATCH 2/2] Cygwin: gendef: export _alloca only on x86_64
Thirumalai Nagalingam
thirumalai.nagalingam@multicorewareinc.com
Mon Feb 9 20:00:00 GMT 2026
Hi,
This patch restricts the export of the _alloca symbol to x86_64 and
intentionally omits it on AArch64.
On AArch64, attempting to export it results in a link-time failure
when building cygwin1.dll. Limiting the export to x86_64 avoids this
error and reflects the architecture-specific availability of _alloca.
Thanks & regards
Thirumalai Nagalingam
In-lined patch:
diff --git a/winsup/cygwin/x86_64/cygwin.din b/winsup/cygwin/x86_64/cygwin.din
index 228894623..dfd50a4c3 100644
--- a/winsup/cygwin/x86_64/cygwin.din
+++ b/winsup/cygwin/x86_64/cygwin.din
@@ -1,2 +1,4 @@
# x86_64-specific exports
# These symbols are only available on x86/x64 architectures
+
+_alloca = __alloca NOSIGFE
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Cygwin-gendef-export-_alloca-only-on-x86_64.patch
Type: application/octet-stream
Size: 870 bytes
Desc: 0002-Cygwin-gendef-export-_alloca-only-on-x86_64.patch
URL: <https://cygwin.com/pipermail/cygwin-patches/attachments/20260209/249e5ad1/attachment.obj>
More information about the Cygwin-patches
mailing list