mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 20:28:28 +08:00
x86-64: respect MOVABS when choosing alternative encodings
The alternative encoding is valid for MOV, but there's no such thing for MOVABS.
This commit is contained in:
@ -6888,7 +6888,8 @@ match_template (char mnem_suffix)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (t->base_opcode == MOV_AX_DISP32
|
if (t->base_opcode == MOV_AX_DISP32
|
||||||
&& t->opcode_modifier.opcodespace == SPACE_BASE)
|
&& t->opcode_modifier.opcodespace == SPACE_BASE
|
||||||
|
&& t->mnem_off != MN_movabs)
|
||||||
{
|
{
|
||||||
/* Force 0x8b encoding for "mov foo@GOT, %eax". */
|
/* Force 0x8b encoding for "mov foo@GOT, %eax". */
|
||||||
if (i.reloc[0] == BFD_RELOC_386_GOT32)
|
if (i.reloc[0] == BFD_RELOC_386_GOT32)
|
||||||
|
Reference in New Issue
Block a user