dynamic PIC register?

Alexandre Oliva aoliva@redhat.com
Thu Sep 27 05:40:00 GMT 2001


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



More information about the Gcc mailing list