12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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)
- 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)
|