This is the mail archive of the gcc@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: PATCH: Optimize protected call for i386


On Wed, May 14, 2003 at 04:50:07PM -0700, H. J. Lu wrote:
> > If you take the address of foo, in *any* DSO, you will not be
> > using either R_386_PC32 or R_386_PLT32.  You'll be using either
> > R_386_32 or R_386_GOT32.
> 
> But the currrent gcc uses R_386_GOTOFF for address of a protected
> data or function symbol on x86 when PIC is used. I will say it is
> a bug.

Agreed.

> R_386_GOT32 should be used here. I can provide a testcase if asked.

File a PR so it does not get lost.


r~


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