This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic PIC register?
- To: dalej at apple dot com
- Subject: Re: dynamic PIC register?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 27 Sep 2001 06:02:26 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200109210020.f8L0KPR22843@scv2.apple.com>
On Sep 20, 2001, dalej@apple.com wrote:
> On the Darwin powerpc target, it would be better not to have
> PIC_OFFSET_TABLE_REGNUM be a fixed register.
I don't know anything about the implementation of shared libraries on
ppc, but if it uses a procedure linkage table, I don't see how the PIC
register may vary: the PLT in general depends on a specific register
pointing to the GOT (plus or minus some constant). It would be nice
to be able to have the fixed register used only in these cases,
though, and leave it up to the register allocator to take care of
cases that don't involve the PLT, such as GOT loads.
But maybe none of this applies to PowerPC.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me