diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-03-17 18:01:24 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-03-19 14:50:57 +0100 |
commit | ae11f049fc55c63a79b95ce0de69a1aee0d53faf (patch) | |
tree | 81cadde791e058896cb87e996c215dc469916b83 /libpthread/nptl/sysdeps/riscv64/libc-tls.c | |
parent | 9e7b342fde5505c0a1d4968e9d70537ac406f640 (diff) |
riscv64: sync with glibc, fix all TLS errors in uClibc-ng-test
Diffstat (limited to 'libpthread/nptl/sysdeps/riscv64/libc-tls.c')
-rw-r--r-- | libpthread/nptl/sysdeps/riscv64/libc-tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpthread/nptl/sysdeps/riscv64/libc-tls.c b/libpthread/nptl/sysdeps/riscv64/libc-tls.c index 67c3a6016..6c686aa8b 100644 --- a/libpthread/nptl/sysdeps/riscv64/libc-tls.c +++ b/libpthread/nptl/sysdeps/riscv64/libc-tls.c @@ -28,7 +28,7 @@ void * __tls_get_addr (tls_index *ti) { dtv_t *dtv = THREAD_DTV (); - return (char *) dtv[1].pointer.val + ti->ti_offset; + return (char *) dtv[1].pointer.val + GET_ADDR_OFFSET; } #endif |