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.

> I don't know how to figure this out (actually, that's why I'm writing
> on this ml). I just wrote a small function which uses a tls variable
> and gcc did the rest.
> 
> __thread unsigned int *tty;
> void puts(char *str)
> {
>     while(*str)
>         *tty = *str++;
> }

If you believe there is a bug, and you have a testcase, please report
it in bugzilla.  Thanks.

-- 
Daniel Jacobowitz
CodeSourcery

Reply via email to