This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dynamic PIC register?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]