blob: 3f3a13e2c44ef1afd7a2ca165619bed1f28f0633 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <stddef.h>
2#include <sysdep.h>
3#include <tls.h>
4#include <link.h>
5#include <dl-tlsdesc.h>
6
7--
8
9-- Abuse tls.h macros to derive offsets relative to the thread register.
10
11TLSDESC_ARG offsetof(struct tlsdesc, argument.pointer)
12
13TLSDESC_GEN_COUNT offsetof(struct tlsdesc_dynamic_arg, gen_count)
14TLSDESC_MODID offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_module)
15TLSDESC_MODOFF offsetof(struct tlsdesc_dynamic_arg, tlsinfo.ti_offset)