[PATCH] PPC64 tls fixes

Alan Modra amodra@bigpond.net.au
Wed Mar 5 23:23:00 GMT 2003


On Wed, Mar 05, 2003 at 03:00:12PM -0800, Roland McGrath wrote:
> Right.  I was asking really only about TPREL, then.  If non-PIC code is kosher,
> then it would look like e.g.
> 
> 	addi 3,13,x@tprel	R_PPC64_TPREL16		x

Yes.  The thing that makes this question a little curly is that
TPREL16 relocs will only be dynamic if a shared lib is compiled
using the LE model.  Doing so is every bit as silly as using non-PIC
shared libs, perhaps even more silly, so it may be better for the
linker just to bomb on finding these relocs.  I added support in
the linker because it was easy to do, and it's generally a good idea
to be permissive in what the linker accepts.  On the other hand, we
don't want to bloat code in ld.so.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Libc-alpha mailing list