mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 19:50:13 +08:00
x86: don't mix disp and imm processing
Surely disp processing should access the disp operand, not an imm one. This is not an active issue only because imms and disps are, at the moment, overlapping fields of the same union.
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
2021-05-07 Jan Beulich <jbeulich@suse.com>
|
||||
|
||||
* config/tc-i386.c (output_disp): Use disps field instead of
|
||||
imms one.
|
||||
|
||||
2021-05-07 Jan Beulich <jbeulich@suse.com>
|
||||
|
||||
* config/tc-i386.c (i386_finalize_immediate): Move register
|
||||
|
@ -10000,7 +10000,7 @@ output_disp (fragS *insn_start_frag, offsetT insn_start_off)
|
||||
{
|
||||
reloc_type = BFD_RELOC_386_GOTPC;
|
||||
i.has_gotpc_tls_reloc = true;
|
||||
i.op[n].imms->X_add_number +=
|
||||
i.op[n].disps->X_add_number +=
|
||||
encoding_length (insn_start_frag, insn_start_off, p);
|
||||
}
|
||||
else if (reloc_type == BFD_RELOC_64)
|
||||
|
Reference in New Issue
Block a user