[PATCH] x86: adjust relocation overflow complaint types

Ian Lance Taylor ian@airs.com
Mon Aug 1 17:11:00 GMT 2005


Andreas Schwab <schwab@suse.de> writes:

> Ian Lance Taylor <ian@airs.com> writes:
> 
> > For what it's worth, I agree with Michael.  R_386_PC16 reliably wraps
> > around in 16-bit code.
> 
> But then it shouldn't be represented internally as BFD_RELOC_16_PCREL,
> since that has different semantics.

I think that by that argument we also shouldn't use BFD_RELOC_32_PCREL
for the 32-bit PC relative relocation, because it also doesn't use
complain_overflow_signed.

I'm not actually sure the internal reloc number used by BFD makes any
difference, but if it does, then perhaps it should indeed be changed.

Ian



More information about the Binutils mailing list