summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-03-17 18:01:24 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-03-19 14:50:57 +0100
commitae11f049fc55c63a79b95ce0de69a1aee0d53faf (patch)
tree81cadde791e058896cb87e996c215dc469916b83 /libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym
parent9e7b342fde5505c0a1d4968e9d70537ac406f640 (diff)
riscv64: sync with glibc, fix all TLS errors in uClibc-ng-test
Diffstat (limited to 'libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym')
-rw-r--r--libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym b/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym
index 86025a402..fe6856c5d 100644
--- a/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym
+++ b/libpthread/nptl/sysdeps/riscv64/tcb-offsets.sym
@@ -1,6 +1,7 @@
#include <sysdep.h>
#include <tls.h>
-MULTIPLE_THREADS_OFFSET offsetof (struct pthread, header.multiple_threads)
-TID_OFFSET offsetof (struct pthread, tid)
-TP_TO_PTHREAD_OFFSET -(sizeof (struct pthread) + sizeof (tcbhead_t))
+#define thread_offsetof(mem) (long)(offsetof (struct pthread, mem) - TLS_TCB_OFFSET - TLS_PRE_TCB_SIZE)
+
+MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads)
+