public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Extending TLS testing and fixing TLS gnu2 for ARM
@ 2024-02-29 19:46 Adhemerval Zanella
  2024-02-29 19:46 ` [PATCH 1/3] Ignore undefined symbols for -mtls-dialect=gnu2 Adhemerval Zanella
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Adhemerval Zanella @ 2024-02-29 19:46 UTC (permalink / raw)
  To: libc-alpha; +Cc: Szabolcs Nagy, H . J . Lu

A recent x86 fix for TLS descriptors [1] uncovered an ARM issue on
_dl_tlsdesc_dynamic where it fails to save/restore all possible
register.

And checking if aarch64 is also affected, I noted that the TLS
descriptor tests are only enabled iff -mtls-dialect= accepts 'gnu2'.
Since aarch64 uses a different naming for the TLS abi
(traditional/desc), some tests are not enabled.  The last patch fixes
it by parametrizing the TLS descriptor dialect name.

[1] https://sourceware.org/pipermail/libc-alpha/2024-February/154995.html

Adhemerval Zanella (3):
  Ignore undefined symbols for -mtls-dialect=gnu2
  arm: Update _dl_tlsdesc_dynamic to preserve caller-saved registers (BZ
    31372)
  elf: Enable TLS descriptor tests on aarch64

 config.h.in                  |  3 ++
 configure                    | 25 +++++-----
 configure.ac                 | 17 ++++---
 elf/Makefile                 | 30 +++++------
 elf/tst-gnu2-tls2.h          |  4 ++
 elf/tst-gnu2-tls2mod0.c      |  3 +-
 elf/tst-gnu2-tls2mod1.c      |  3 +-
 elf/tst-gnu2-tls2mod2.c      |  3 +-
 sysdeps/aarch64/preconfigure |  1 +
 sysdeps/arm/Makefile         |  8 +--
 sysdeps/arm/configure        | 32 ++++++++++++
 sysdeps/arm/configure.ac     | 15 ++++++
 sysdeps/arm/dl-tlsdesc.S     | 70 +++++++++++++++++++++++---
 sysdeps/arm/tst-gnu2-tls2.h  | 96 ++++++++++++++++++++++++++++++++++++
 14 files changed, 260 insertions(+), 50 deletions(-)
 create mode 100644 sysdeps/arm/tst-gnu2-tls2.h

-- 
2.34.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-03-11 12:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-29 19:46 [PATCH 0/3] Extending TLS testing and fixing TLS gnu2 for ARM Adhemerval Zanella
2024-02-29 19:46 ` [PATCH 1/3] Ignore undefined symbols for -mtls-dialect=gnu2 Adhemerval Zanella
2024-03-05 20:07   ` H.J. Lu
2024-03-05 20:17     ` Adhemerval Zanella Netto
2024-03-05 20:22       ` H.J. Lu
2024-02-29 19:46 ` [PATCH 2/3] arm: Update _dl_tlsdesc_dynamic to preserve caller-saved registers (BZ 31372) Adhemerval Zanella
2024-02-29 19:46 ` [PATCH 3/3] elf: Enable TLS descriptor tests on aarch64 Adhemerval Zanella
2024-03-11 12:31   ` Szabolcs Nagy
2024-03-11 12:36     ` Adhemerval Zanella Netto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).