This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/5399: arm/thumb: pointer indirections when using -fpic
- From: Phil Blundell <pb at nexus dot co dot uk>
- To: Adrian von Bidder <avbidder at acter dot ch>
- Cc: bug-gcc at gnu dot org
- Date: 16 Jan 2002 12:43:53 +0000
- Subject: Re: target/5399: arm/thumb: pointer indirections when using -fpic
- References: <1011179611.21615.23.camel@mill> <1011184568.6775.18.camel@atlas>
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.