This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: target/5399: arm/thumb: pointer indirections when using -fpic


On Wed, 2002-01-16 at 12:36, Adrian von Bidder wrote:
> a memory reference with (GOT) like .L23(GOT) means that the resulting
> value is the offset into the GOT that contains a pointer to the "real"
> value of .L23 - whereas an expression .L2(GOTOFF) is the offset of .L2
> relative to the start of the GOT, but no GOT entry for .L2 is created.

Yup.  The theory is that you can use GOTOFF to address static data that
doesn't have global linkage; it's a bit more efficient than actually
indirecting through the GOT.  I'm not sure if GCC ever actually
generates GOTOFF in practice at the moment.

p.


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