]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Internal TLS support for aarch64, x86_64, riscv, ppc64, and s390x
authorKevin Buettner <kevinb@redhat.com>
Thu, 24 Apr 2025 04:39:29 +0000 (21:39 -0700)
committerKevin Buettner <kevinb@redhat.com>
Thu, 24 Apr 2025 16:54:42 +0000 (09:54 -0700)
commitc34309bea221718964b2a1ec3156393df95faf3f
tree58fd1bb5b2686f9b81ccd62f9c4c27ceea562578
parent85e1d8f93df69a8e39ae9965a8a1cf02546e92a7
Internal TLS support for aarch64, x86_64, riscv, ppc64, and s390x

For each architecture, aarch64, x86_64, riscv, ppc64, and s390x,
this commit defines a suitable 'get_tls_dtv_addr' method and,
when necessary, a 'get_tls_dtp_offset' method.

It also registers svr4_tls_get_thread_local_address, defined in
svr4-tls-tdep.c (in an earlier commit), as the
get_thread_local_address gdbarch method.  It also registers its
architecture specific code using svr4_tls_register_tls_methods().

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=24548
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31563

Tested-By: Luis Machado <luis.machado@arm.com>
Approved-By: Luis Machado <luis.machado@arm.com>
gdb/aarch64-linux-tdep.c
gdb/amd64-linux-tdep.c
gdb/configure.tgt
gdb/ppc-linux-tdep.c
gdb/riscv-linux-tdep.c
gdb/s390-linux-tdep.c