This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: PowerPC TLS ABI


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


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