PowerPC TLS ABI

Daniel Jacobowitz drow@false.org
Mon Feb 23 15:05:00 GMT 2009


On Tue, Feb 24, 2009 at 12:41:28AM +1030, Alan Modra wrote:
> sequences.  In fact if we use two different marker relocs then we can
> partition the instructions into those used for global dynamic and
> those used for local dynamic tls.  This is sufficient because every
> occurrence of global dynamic code for a given symbol will be subject
> to the same optimization, and likewise for local dynamic.  The linker
> doesn't need to know exactly which sequence a given __tls_get_addr
> call belong to, just that it belongs with a given symbol.

For correctness, I believe this means the linker has to transform
every TLS reference to a given symbol or none of them - is that right?
Are there any ways the linker can fail, e.g. to find the expected
instruction sequence?

Otherwise, sounds viable to me.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list