6 -- Abuse tls.h macros to derive offsets relative to the thread register.
7 # define __builtin_thread_pointer() ((void *) 0)
8 # define thread_offsetof(mem) ((void *) &THREAD_SELF->mem - (void *) 0)
10 #if TLS_MULTIPLE_THREADS_IN_TCB
11 MULTIPLE_THREADS_OFFSET thread_offsetof (header.multiple_threads)
13 PID_OFFSET thread_offsetof (pid)