[parisc-linux] Re: Q: TLS local dynamic case and zero initialized ti_offset?
Randolph Chung
randolph at tausq.org
Sun Apr 9 17:40:49 MDT 2006
> In the local dynamic case we emit one reloc R_PARISC_TLS_DTPMOD32.
> This means that at runtime there is a GOT entry with an absoluate
> address which points to a tls_index structure, which has it's
> ti_module filled by the dynamic loader (after processing the DTPMOD32
> reloc). The question I have is, does this tls_index appear in bss? Is
> the offset ti_offset initialized to zero? The zero offset is required
> since we want __tls_get_addr to return the start of the modules block,
> so we can subsequently offset into that block without calling
> __tls_get_addr again.
In the LD case, the tls_index structure is inside the GOT. The GOT is
zeroed by ld when it is created.
randolph
More information about the parisc-linux
mailing list