This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: target/4791: gcc 3.0.2 x86 PIC code can be improved
- From: rth at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, leitner at fefe dot de, nobody at gcc dot gnu dot org
- Date: 30 Mar 2002 01:35:32 -0000
- Subject: Re: target/4791: gcc 3.0.2 x86 PIC code can be improved
- Reply-to: rth at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, leitner at fefe dot de, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: gcc 3.0.2 x86 PIC code can be improved
State-Changed-From-To: open->closed
State-Changed-By: rth
State-Changed-When: Fri Mar 29 17:35:31 2002
State-Changed-Why:
Not possible. The reference to _GLOBAL_OFFSET_TABLE_ is magic
in that it's actually PC-relative. The assembler takes care
of this by transforming it to an R_386_GOTPC relocation instead
of the R_386_32 relocation any other symbol would receive.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4791