1#include <stddef.h> 2#include <sysdep.h> 3#include <tls.h> 4#include <link.h> 5#include <dl-tlsdesc.h> 6 7-- 8 9-- We have to override sysdeps/i386/tlsdesc.sym to adapt to our libpthread. 10 11-- Abuse tls.h macros to derive offsets relative to the thread register. 12 13DTV_OFFSET offsetof(tcbhead_t, dtv) 14 15TLSDESC_ARG offsetof(struct tlsdesc, arg) 16 17TLSDESC_GEN_COUNT offsetof(struct tlsdesc_dynamic_arg, gen_count) 18TLSDESC_MODID offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module) 19TLSDESC_MODOFF offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset) 20