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
--


Attachment: 0002-Cygwin-gendef-export-_alloca-only-on-x86_64.patch
Description: 0002-Cygwin-gendef-export-_alloca-only-on-x86_64.patch

Reply via email to