An unusual x86_64 code model
Jed Davis
jedidiah@vmware.com
Fri Aug 12 23:53:00 GMT 2011
On Tue, Aug 09, 2011 at 04:26:06PM -0700, Jed Davis wrote:
> Thus, I'm trying to find the right solution. My current attempt is to
> add an -mno-plt flag in i386.opt, and add it to the list of reasons not
> to print "@PLT" after symbol names. This seems to work, although I've
> only done minimal testing so far.
Emphasis on "minimal"; a reference to the address of an extern variable
yields a @GOTPCREL. So that wasn't going to work in any case. The more
of i386.c I read, the more I realize that the resemblance to CM_SMALL_PIC
was mostly coincidental.
--Jed
More information about the Gcc
mailing list