[PATCH] x86: adjust relocation overflow complaint types

Michael Matz matz@suse.de
Mon Aug 1 10:16:00 GMT 2005


Hi,

On Mon, 1 Aug 2005, Andreas Schwab wrote:

> > Right, but fact is, that dosemu can now not be build anymore,
> 
> Then dosemu needs to be fixed, it was depending on a bug that is now
> fixed.  Adding a suitable bias may be enough.

Look at my testcase.  How would you try to "fix" this?  Adding any bias to
the jump would not make it come out correct.  The distance between the
jump and the target really is > 0x8000 (remember this is bios code, the
jump needs to be at that place, and the jump target also needs to be at
that place), and hence it relies on the wrap around.  And I don't see why
it shouldn't, as 16 bit code can rely on that.  With this change .code16 
became somewhat more useless IMHO.


Ciao,
Michael.



More information about the Binutils mailing list