PATCH: Call OP_E_memory instead of OP_E
H.J. Lu
hongjiu.lu@intel.com
Fri Feb 27 20:12:00 GMT 2009
More information about the Binutils mailing list
Fri Feb 27 20:12:00 GMT 2009
- Previous message (by thread): gold patch committed: Fix symbol visibility (PR 9836)
- Next message (by thread): [patch] Add thin archive support to readelf
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, OP_EX can call OP_E_memory directly. I am checking in this patch. H.J. --- Index: ChangeLog =================================================================== RCS file: /cvs/src/src/opcodes/ChangeLog,v retrieving revision 1.1361 diff -u -p -r1.1361 ChangeLog --- ChangeLog 26 Feb 2009 22:07:33 -0000 1.1361 +++ ChangeLog 27 Feb 2009 20:11:23 -0000 @@ -1,3 +1,7 @@ +2009-02-27 H.J. Lu <hongjiu.lu@intel.com> + + * i386-dis.c (OP_EX): Call OP_E_memory instead of OP_E. + 2009-02-26 Peter Bergner <bergner@vnet.ibm.com> * ppc-dis.c (powerpc_init_dialect): Extend -Mpower7 to disassemble Index: i386-dis.c =================================================================== RCS file: /cvs/src/src/opcodes/i386-dis.c,v retrieving revision 1.191 diff -u -p -r1.191 i386-dis.c --- i386-dis.c 4 Feb 2009 16:03:31 -0000 1.191 +++ i386-dis.c 27 Feb 2009 20:11:24 -0000 @@ -12676,11 +12676,17 @@ static void OP_EX (int bytemode, int sizeflag) { int add; + + /* Skip mod/rm byte. */ + MODRM_CHECK; + codep++; + if (modrm.mod != 3) { - OP_E (bytemode, sizeflag); + OP_E_memory (bytemode, sizeflag, 0); return; } + USED_REX (REX_B); if (rex & REX_B) add = 8; @@ -12693,9 +12699,6 @@ OP_EX (int bytemode, int sizeflag) || bytemode == q_swap_mode)) swap_operand (); - /* Skip mod/rm byte. */ - MODRM_CHECK; - codep++; if (need_vex && bytemode != xmm_mode && bytemode != xmmq_mode)
- Previous message (by thread): gold patch committed: Fix symbol visibility (PR 9836)
- Next message (by thread): [patch] Add thin archive support to readelf
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list