http://sourceware.org/bugzilla/show_bug.cgi?id=13573
Bug #: 13573
Summary: jmp is misassembled in Intel syntax.
Product: binutils
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
What I tell looks like to '10740 Intel syntax far jumps broken'.
But it is about the case that jmp's operand is integer.
My report is about that is memory and registers.
I wrote the following in a file whose extension is S.
.text
.code32
ljmp *4(%esp)
.intel_syntax noprefix
jmp far[esp+4]
I think both jmp commands have same meaning.
But they were assembled into the different machine code.
'jmp far[esp+4]' -> 'FF A4 24 0A FF 00 00'
'ljmp *4(%esp)' -> 'FF 6C 24 04'
'FF A4 24 0A FF 00 00' is wrong machine code to work as I thought.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils