aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/loongarch/libc-tls.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-01-02 13:45:27 +0100
committerFlorian Weimer <fweimer@redhat.com>2025-01-02 13:45:27 +0100
commitcc74583f23657515b1d09d0765032422af71de52 (patch)
tree3fc3b63128ff27d179d33579ef3278dbdbd8a6bc /sysdeps/loongarch/libc-tls.c
parent30e32da6aafcef5a5d5a1c91e233636db6493fc8 (diff)
downloadglibc-cc74583f23657515b1d09d0765032422af71de52.tar.xz
glibc-cc74583f23657515b1d09d0765032422af71de52.zip
elf: Remove the remaining uses of GET_ADDR_OFFSET
Expand the macro where it is used in static definitions of __tls_get_addr. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/loongarch/libc-tls.c')
-rw-r--r--sysdeps/loongarch/libc-tls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/loongarch/libc-tls.c b/sysdeps/loongarch/libc-tls.c
index ae96daa4b9..e3c10e664d 100644
--- a/sysdeps/loongarch/libc-tls.c
+++ b/sysdeps/loongarch/libc-tls.c
@@ -28,5 +28,5 @@ void *
__tls_get_addr (tls_index *ti)
{
dtv_t *dtv = THREAD_DTV ();
- return (char *) dtv[1].pointer.val + GET_ADDR_OFFSET;
+ return (char *) dtv[1].pointer.val + ti->ti_offset + TLS_DTV_OFFSET;
}