Back to index

glibc  2.9
Classes | Defines | Functions
dl-tls.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  tls_index


#define TLS_TP_OFFSET   0x7000
#define TLS_DTV_OFFSET   0x8000
#define TLS_TPREL_VALUE(sym_map, sym)   ((sym_map)->l_tls_offset + (sym)->st_value - TLS_TP_OFFSET)
#define TLS_DTPREL_VALUE(sym)   ((sym)->st_value - TLS_DTV_OFFSET)
#define GET_ADDR_OFFSET   (ti->ti_offset + TLS_DTV_OFFSET)
#define __TLS_GET_ADDR(__ti)   (__tls_get_addr (__ti) - TLS_DTV_OFFSET)


void * __tls_get_addr (tls_index *ti)

Class Documentation

struct tls_index

Definition at line 22 of file dl-tls.h.

Class Members
unsigned long int ti_module
unsigned long int ti_offset

Define Documentation

#define __TLS_GET_ADDR (   __ti)    (__tls_get_addr (__ti) - TLS_DTV_OFFSET)

Definition at line 46 of file dl-tls.h.

#define GET_ADDR_OFFSET   (ti->ti_offset + TLS_DTV_OFFSET)

Definition at line 45 of file dl-tls.h.

#define TLS_DTPREL_VALUE (   sym)    ((sym)->st_value - TLS_DTV_OFFSET)

Definition at line 40 of file dl-tls.h.

#define TLS_DTV_OFFSET   0x8000

Definition at line 33 of file dl-tls.h.

#define TLS_TP_OFFSET   0x7000

Definition at line 29 of file dl-tls.h.

#define TLS_TPREL_VALUE (   sym_map,
)    ((sym_map)->l_tls_offset + (sym)->st_value - TLS_TP_OFFSET)

Definition at line 36 of file dl-tls.h.

Function Documentation

void* __tls_get_addr ( tls_index ti)

Definition at line 29 of file libc-tls.c.

  dtv_t *dtv = THREAD_DTV ();
  return (char *) dtv[1].pointer.val + ti->ti_offset;