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] PPC64 tls fixes


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 at 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


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