This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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] x86: adjust relocation overflow complaint types


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.


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