This is the mail archive of the
mailing list for the glibc project.
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.
IBM OzLabs - Linux Technology Centre