[committed, PATCH] Remove Disp16|Disp32 from 64-bit direct branches

Michael Matz matz@suse.de
Wed May 13 12:34:00 GMT 2015


Hi,

On Tue, 12 May 2015, H.J. Lu wrote:

> > Well, what do you suggest?  Your change is clearly wrong as well.
> 
> I won't call it wrong since it implies there is a right.

Of course there is a right.  The x86-64 specification is quite clear what 
happens with the prefix on jumps.  Intel CPUs are simply buggy in not 
implementing it.  And you're making binutils follow that buggy behaviour.  
And that is wrong.  The associated bug report is invalid.

> Given that
> 
> 0x66 jmp/call rel32
> 
> works on Intel processors and crashes on AMD processors.
> I will keep my change in unlessl someone can show a real usage of
> 
> 066 jmp/call rel16
> 
> on AMD processors.

Huh, what?  I must say I'm not very fond of your way of maintaining the 
x86-64 binutils.


Ciao,
Michael.



More information about the Binutils mailing list