[newlib-cygwin/main] Cygwin: define ___CTOR_LIST__ and ___DTOR_LIST__ for AArch64

Corinna Vinschen via Cygwin-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3493ff4db49b9c89757bf8198d7d7603963739c9

commit 3493ff4db49b9c89757bf8198d7d7603963739c9
Author:     Radek Bartoň <[email protected]>
AuthorDate: Fri Jun 6 14:12:28 2025 +0200
Commit:     Corinna Vinschen <[email protected]>
CommitDate: Wed Jun 25 13:45:42 2025 +0200

    Cygwin: define ___CTOR_LIST__ and ___DTOR_LIST__ for AArch64
    
    Signed-off-by: Radek Bartoň <[email protected]>

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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.