[newlib-cygwin/main] Cygwin: gentls_offsets: port to support AArch64

Corinna Vinschen corinna@sourceware.org
Thu Jul 3 15:21:59 GMT 2025


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

commit c85f42a4f3ee65c575e35af7b432c1a0ac2e0f8d
Author:     Radek Bartoň <radek.barton@microsoft.com>
AuthorDate: Fri Jun 6 11:21:11 2025 +0200
Commit:     Corinna Vinschen <corinna@vinschen.de>
CommitDate: Thu Jul 3 17:20:28 2025 +0200

    Cygwin: gentls_offsets: port to support AArch64
    
    Signed-off-by: Radek Bartoň <radek.barton@microsoft.com>

Diff:
---
 winsup/cygwin/scripts/gentls_offsets | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/scripts/gentls_offsets b/winsup/cygwin/scripts/gentls_offsets
index 040b5de6b551..c375a6106feb 100755
--- a/winsup/cygwin/scripts/gentls_offsets
+++ b/winsup/cygwin/scripts/gentls_offsets
@@ -62,7 +62,7 @@ start_offset=$(gawk '\
   /^__CYGTLS__/ {
     varname = gensub (/__CYGTLS__(\w+):/, "\\1", "g");
   }
-  /\s*\.long\s+/ {
+  /\s*\.(word|long)\s+/ {
     if (length (varname) > 0) {
       if (varname == "start_offset") {
 	print $2;
@@ -85,7 +85,7 @@ gawk -v start_offset="$start_offset" '\
       varname = "";
     }
   }
-  /\s*\.long\s+/ {
+  /\s*\.(word|long)\s+/ {
     if (length (varname) > 0) {
       if (varname == "start_offset") {
 	printf (".equ _cygtls.%s, -%u\n", varname, start_offset);


More information about the Cygwin-cvs mailing list