[mips-tls] Revised versions of MIPS TLS ABI specification

Daniel Jacobowitz dan at codesourcery.com
Wed Nov 10 00:09:06 UTC 2004


On Tue, Nov 09, 2004 at 11:38:20PM +0000, Nigel Stephens wrote:
> >No.  This is a variant I model, which means that the size and layout of
> >the TCB are known; it's in variant II that the TCB is indeterminate. In
> >variant I the TLS areas have a positive offset from the TCB, which
> >starts with a pointer to the DTV; in variant II they have a negative
> >offset from the TCB, which has indeterminate contents.  In either case
> >the static linker can resolve IE/LE references that bind to the local
> >executable.
> > 
> >
> 
> Ah, yes. So variant I works because we are defining the TCB structure 
> and we don't require compatibility with any pre-existing TLS library. Right?

That's correct.  We can define the size of the TCB as fixed, so we can
place TLS blocks after it.  We could even allow application access to
the DTV... if there was benefit shown.

-- 
Daniel Jacobowitz



More information about the mips-tls mailing list