This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PPC linuxthreads tls.h fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]