Blame sysdeps/nios2/nptl/tcb-offsets.sym

Packit Service 82fcde
#include <sysdep.h>
Packit Service 82fcde
#include <tls.h>
Packit Service 82fcde
Packit Service 82fcde
--
Packit Service 82fcde
Packit Service 82fcde
-- Abuse tls.h macros to derive offsets relative to the thread register.
Packit Service 82fcde
# undef __thread_self
Packit Service 82fcde
# define __thread_self          ((void *) 0)
Packit Service 82fcde
# define thread_offsetof(mem)   ((ptrdiff_t) THREAD_SELF + offsetof (struct pthread, mem))
Packit Service 82fcde
Packit Service 82fcde
MULTIPLE_THREADS_OFFSET		thread_offsetof (header.multiple_threads)
Packit Service 82fcde
TID_OFFSET			thread_offsetof (tid)
Packit Service 82fcde
POINTER_GUARD			(offsetof (tcbhead_t, pointer_guard) - TLS_TCB_OFFSET - sizeof (tcbhead_t))