This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [rs6000/rfc] -fPIC vs TLS
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Richard Henderson <rth at redhat dot com>, Alan Modra <amodra at bigpond dot net dot au>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 09 Mar 2006 20:26:10 -0500
- Subject: Re: [rs6000/rfc] -fPIC vs TLS
>>>>> Richard Henderson writes:
First of all, it seems like the existing code for the old
abi is being unnecessarily obtuse.
bcl 20,31,2f
1: .long _GLOBAL_OFFSET_TABLE_-$
2:
mflr 1
lwz 2,0(1)
add 3,2,1
PowerPC branch displacement is limited.
bl _GLOBAL_OFFSET_TABLE_@local-4
restricts the placement of the GOT and the size of the text section while
the former code does not. I think that is the reason for the more
complicated sequence. Alan Modra probably can provide more insight.
David