[PATCH] x86/Intel: fix indirect far jmp/call with operand size specified

H.J. Lu hjl.tools@gmail.com
Fri Feb 22 15:50:00 GMT 2008


On Fri, Feb 22, 2008 at 03:35:39PM +0000, Jan Beulich wrote:
> >>> "H.J. Lu" <hjl.tools@gmail.com> 22.02.08 16:14 >>>
> >On Thu, Feb 21, 2008 at 05:49:34PM +0100, Andreas Jaeger wrote:
> >> "H.J. Lu" <hjl.tools@gmail.com> writes:
> >> 
> >> > Hi Jan,
> >> >
> >> > Do you have testcases?
> >> 
> >> netboot fails with:
> >> 
> >> runtime.S86: Assembler messages:
> >> runtime.S86:388: Error: suffix or operands invalid for `jmp'
> >> runtime.S86:393: Error: suffix or operands invalid for `jmp'
> >> runtime.S86:398: Error: suffix or operands invalid for `jmp'
> >> 
> >
> >Can you provide a preprocessed source with command line
> >options to reproduce it?
> 
> Distilled version (from memory):
> 
> 	.intel_syntax noprefix
> 	.code16
> start:
> 	call	word ptr [bx]
> 	call	dword ptr [bx]
> 	call	fword ptr [bx]
> 	jmp	word ptr [bx]
> 	jmp	dword ptr [bx]
> 	jmp	fword ptr [bx]
> 

It works with the current binutils.


H.J.



More information about the Binutils mailing list