dynamic PIC register?
Stan Shebs
shebs@apple.com
Thu Sep 27 06:38:00 GMT 2001
Alexandre Oliva wrote:
>
> 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).
No PLT or GOT. The PIC register is set up per-function. The Darwin
PIC strategy is unlike any other, one reason why there is a lot of code
in config/darwin.*.
Stan
More information about the Gcc
mailing list