Hi Thirumalai,

On Feb  9 20:00, Thirumalai Nagalingam wrote:
> 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
> --

Is that right?  I'm missing the patch hunk removing _alloca from the
common cygwin.din...


Thanks,
Corinna

Reply via email to