Blame sysdeps/x86_64/tlsdesc.sym

Packit 6c4009
#include <stddef.h>
Packit 6c4009
#include <sysdep.h>
Packit 6c4009
#include <tls.h>
Packit 6c4009
#include <link.h>
Packit 6c4009
#include <dl-tlsdesc.h>
Packit 6c4009
Packit 6c4009
--
Packit 6c4009
Packit 6c4009
-- Abuse tls.h macros to derive offsets relative to the thread register.
Packit 6c4009
Packit 6c4009
DTV_OFFSET			offsetof(struct pthread, header.dtv)
Packit 6c4009
Packit 6c4009
TLSDESC_ARG			offsetof(struct tlsdesc, arg)
Packit 6c4009
Packit 6c4009
TLSDESC_GEN_COUNT		offsetof(struct tlsdesc_dynamic_arg, gen_count)
Packit 6c4009
TLSDESC_MODID			offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module)
Packit 6c4009
TLSDESC_MODOFF			offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset)
Packit 6c4009
Packit 6c4009
TI_MODULE_OFFSET 		offsetof(tls_index, ti_module)
Packit 6c4009
TI_OFFSET_OFFSET 		offsetof(tls_index, ti_offset)