[newlib-cygwin/main] Cygwin: define OUTPUT_FORMAT and SEARCH_DIR for AArch64

Corinna Vinschen corinna@sourceware.org
Mon Jul 7 11:44:59 GMT 2025


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

commit 2dba849df85b9f59a0c160c37e1265a391c649bb
Author:     Radek Bartoň <radek.barton@microsoft.com>
AuthorDate: Fri Jun 6 14:13:16 2025 +0200
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Mon Jul 7 10:35:43 2025 +0200

    Cygwin: define OUTPUT_FORMAT and SEARCH_DIR for AArch64
    
    This patch defines binutils output binary format for AArch64 which is pei-aarch64-little.
    
    Since =/usr/lib/w32api resolves to $SYSROOT/usr/lib/w32api and Fedora cross-build takes libraries from
    /usr/aarch64-pc-cygwin/sys-root/usr/lib/w32api, the SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api"); is
    redundant and can be removed.
    
    Signed-off-by: Radek Bartoň <radek.barton@microsoft.com>

Diff:
---
 winsup/cygwin/cygwin.sc.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/winsup/cygwin/cygwin.sc.in b/winsup/cygwin/cygwin.sc.in
index 5007a3694ce4..25739a198bd2 100644
--- a/winsup/cygwin/cygwin.sc.in
+++ b/winsup/cygwin/cygwin.sc.in
@@ -1,9 +1,11 @@
 #ifdef __x86_64__
 OUTPUT_FORMAT(pei-x86-64)
-SEARCH_DIR("/usr/x86_64-pc-cygwin/lib/w32api"); SEARCH_DIR("=/usr/lib/w32api");
+#elif __aarch64__
+OUTPUT_FORMAT(pei-aarch64-little)
 #else
 #error unimplemented for this target
 #endif
+SEARCH_DIR("=/usr/lib/w32api")
 #define __CONCAT1(a,b)	a##b
 #define __CONCAT(a,b) __CONCAT1(a,b)
 #define _SYM(x)	__CONCAT(__USER_LABEL_PREFIX__, x)


More information about the Cygwin-cvs mailing list