On Tue, Mar 17, 2009 at 04:03:45PM +0100, Joel Porquet wrote:
> 2009/3/17 Daniel Jacobowitz <d...@false.org>:
> > On Tue, Mar 17, 2009 at 10:26:05AM +0100, Joel Porquet wrote:
> >> I don't understand how the runtime loader could know that! As far as I
> >> know, the tls model is not embedded in reloc information.
> >
> > Sure it is.  I suggest you go back to Ulrich Drepper's TLS paper
> > for more information about the relocations.
> 
> The only information is whether the module uses a static model. So we
> are able to distinguish *-dynamic from *-exec models. Nevertheless, I
> still don't see how the runtime loader can distinguish local-dynamic
> and global-dynamic: when it goes through the relocations, it only sees
> *DTPMOD32 which is common for both models.

It's based on the symbol referenced by the relocation.

-- 
Daniel Jacobowitz
CodeSourcery

Reply via email to