PATCH: Optimize protected call for i386
Richard Henderson
rth@redhat.com
Thu May 15 00:44:00 GMT 2003
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~
More information about the Gcc
mailing list