* [parisc-linux] Q: TLS local dynamic case and zero initialized ti_offset?
@ 2006-04-08 22:16 Carlos O'Donell
2006-04-09 23:40 ` [parisc-linux] " Randolph Chung
0 siblings, 1 reply; 2+ messages in thread
From: Carlos O'Donell @ 2006-04-08 22:16 UTC (permalink / raw)
To: Randolph Chung, parisc-linux
Randolph,
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.
Cheers,
Carlos.
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
^ permalink raw reply [flat|nested] 2+ messages in thread
* [parisc-linux] Re: Q: TLS local dynamic case and zero initialized ti_offset?
2006-04-08 22:16 [parisc-linux] Q: TLS local dynamic case and zero initialized ti_offset? Carlos O'Donell
@ 2006-04-09 23:40 ` Randolph Chung
0 siblings, 0 replies; 2+ messages in thread
From: Randolph Chung @ 2006-04-09 23:40 UTC (permalink / raw)
To: Carlos O'Donell; +Cc: parisc-linux
> 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
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-09 23:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-08 22:16 [parisc-linux] Q: TLS local dynamic case and zero initialized ti_offset? Carlos O'Donell
2006-04-09 23:40 ` [parisc-linux] " Randolph Chung
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.