123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- typedef struct
- {
- unsigned long int ti_module;
- unsigned long int ti_offset;
- } tls_index;
- #define TLS_TP_OFFSET 0x7000
- #define TLS_DTV_OFFSET 0x8000
- #define TLS_TPREL_VALUE(sym_map, sym, reloc) \
- ((sym_map)->l_tls_offset + (sym)->st_value + (reloc)->r_addend \
- - TLS_TP_OFFSET)
- #define TLS_DTPREL_VALUE(sym, reloc) \
- ((sym)->st_value + (reloc)->r_addend - TLS_DTV_OFFSET)
- #ifdef SHARED
- extern void *__tls_get_addr (tls_index *ti);
- # define GET_ADDR_OFFSET (ti->ti_offset + TLS_DTV_OFFSET)
- # define __TLS_GET_ADDR(__ti) (__tls_get_addr (__ti) - TLS_DTV_OFFSET)
- #endif
|