https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3493ff4db49b9c89757bf8198d7d7603963739c9

commit 3493ff4db49b9c89757bf8198d7d7603963739c9
Author:     Radek Bartoň <radek.bar...@microsoft.com>
AuthorDate: Fri Jun 6 14:12:28 2025 +0200
Commit:     Corinna Vinschen <cori...@vinschen.de>
CommitDate: Wed Jun 25 13:45:42 2025 +0200

    Cygwin: define ___CTOR_LIST__ and ___DTOR_LIST__ for AArch64
    
    Signed-off-by: Radek Bartoň <radek.bar...@microsoft.com>

Diff:
---
 winsup/cygwin/cygwin.sc.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/cygwin.sc.in b/winsup/cygwin/cygwin.sc.in
index 69526f5d8af6..5007a3694ce4 100644
--- a/winsup/cygwin/cygwin.sc.in
+++ b/winsup/cygwin/cygwin.sc.in
@@ -17,7 +17,7 @@ SECTIONS
     *(SORT(.text$*))
     *(.glue_7t)
     *(.glue_7)
-#ifdef __x86_64__
+#if defined(__x86_64__) || defined(__aarch64__)
     . = ALIGN(8);
      ___CTOR_LIST__ = .; __CTOR_LIST__ = .;
                        LONG (-1); LONG (-1); *(SORT(.ctors.*)); *(.ctors); 
*(.ctor); LONG (0); LONG (0);

Reply via email to