[PATCH] Cygwin: gentls_offsets: port to support AArch64
Corinna Vinschen
corinna-cygwin@cygwin.com
Thu Jul 3 15:22:17 GMT 2025
On Jul 3 14:39, Radek Barton via Cygwin-patches wrote:
> Hello.
>
> This patch ports `winsup/cygwin/scripts/gentls_offsets` script to AArch64 where `.word` instead of `.long` is used.
>
> ---
> >From b53e7dfcc0f31bdc5d8ad1fcff14753e0bd3399c Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Radek=20Barto=C5=88?= <radek.barton@microsoft.com>
> Date: Fri, 6 Jun 2025 11:21:11 +0200
> Subject: [PATCH] Cygwin: gentls_offsets: port to support AArch64
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> Signed-off-by: Radek Bartoň <radek.barton@microsoft.com>
> ---
> 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 040b5de6b..c375a6106 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);
> --
> 2.49.0.vfs.0.4
>
Pushed.
Thanks,
Corinna
More information about the Cygwin-patches
mailing list