[PATCH 1/1] Cygwin: Fix SEH and signal handling on AArch64

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Mar 30 08:34:30 GMT 2026


Hi Igor,

On Mar 27 12:43, Igor Podgainoi wrote:
> This patch adds the SEH_CODE macro (defined in exception.h), allowing
> a single EXCEPTION_HANDLER_DATA metadata definition to be used on both
> AArch64 and x86_64 architectures.
> 
> It also fixes an issue related to stack replacement in _dll_crt0 that
> impacts SEH and signal handling, where due to an epilogue optimization
> on AArch64 the epilogue might appear before _main_tls->call. However,
> after the stack replacement this optimization becomes broken.

Can you explain why this problem only affects aarch64 and not x86_64
as well?


Thanks,
Corinna


More information about the Cygwin-patches mailing list