This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Optimize protected call for i386
On Wed, May 14, 2003 at 05:40:03PM -0700, Richard Henderson wrote:
> On Thu, May 15, 2003 at 09:21:07AM +0930, Alan Modra wrote:
> > How is the linker supposed to distinguish
> > this reloc from an R_386_PC32 on ".long foo - ."?
>
> Who cares? You can't generate this from C. As for assembly,
> "don't do that if you care about pointer equality".
>
> Indeed, I can think of reasons to use this pcrel form if you
> _don't_ want pointer equality. Such as in .eh_frame data.
Yeah, OK, fair enough. HJ, go ahead and commit your
SYMBOL_CALLS_LOCAL patch (and post it to the binutils list).
--
Alan Modra
IBM OzLabs - Linux Technology Centre