Blame sysdeps/x86_64/tlsdesc.sym

Packit Service 82fcde
#include <stddef.h>
Packit Service 82fcde
#include <sysdep.h>
Packit Service 82fcde
#include <tls.h>
Packit Service 82fcde
#include <link.h>
Packit Service 82fcde
#include <dl-tlsdesc.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
Packit Service 82fcde
DTV_OFFSET			offsetof(struct pthread, header.dtv)
Packit Service 82fcde
Packit Service 82fcde
TLSDESC_ARG			offsetof(struct tlsdesc, arg)
Packit Service 82fcde
Packit Service 82fcde
TLSDESC_GEN_COUNT		offsetof(struct tlsdesc_dynamic_arg, gen_count)
Packit Service 82fcde
TLSDESC_MODID			offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module)
Packit Service 82fcde
TLSDESC_MODOFF			offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset)
Packit Service 82fcde
Packit Service 82fcde
TI_MODULE_OFFSET 		offsetof(tls_index, ti_module)
Packit Service 82fcde
TI_OFFSET_OFFSET 		offsetof(tls_index, ti_offset)