[PATCH] PPC linuxthreads tls.h fix

Alan Modra amodra@bigpond.net.au
Fri Feb 28 02:26:00 GMT 2003


On Thu, Feb 27, 2003 at 06:06:38PM -0800, Roland McGrath wrote:
> > I'm not at all fussed over what you do with the TCB.  Since our tls
> > abi has the thread pointer relative to the end of the TCB, you can
> > change what's in TCB and its size, and binutils and gcc won't be
> > affected.  Perhaps our ABI document shouldn't even mention the size
> > of the TCB.
> 
> He is talking about the words the thread register points to, i.e. the
> word(s) after the DTV pointer.  This is what the TLS document calls the TCB
> in "variant I" (TLS_DTV_AT_TP).  Statically laid-out TLS offsets begin
> immediately after this.

Sure, I realize Paul is talking about the words after the DTV pointer.
And our thread register _doesn't_ point to the TCB, rather to the end
of TCB + 0x7000.  Which is why the TCB size and contents are entirely
a glibc issue for powerpc.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Libc-alpha mailing list