This is the mail archive of the
mailing list for the GCC project.
Re: dynamic PIC register?
Alexandre Oliva <email@example.com> writes:
|> On Sep 20, 2001, firstname.lastname@example.org 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).
On the m68k the PLT does not depend on a PIC register at all (it gets the
address of the GOT by pc-relative addressing). So it would benefit from a
non-fixed PIC register as well.
Andreas Schwab "And now for something
Andreas.Schwab@suse.de completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5