projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86-64: always use unsigned 32-bit reloc for 32-bit addressing w/o base reg
[binutils-gdb.git]
/
gas
/
config
/
tc-i386.c
diff --git
a/gas/config/tc-i386.c
b/gas/config/tc-i386.c
index e22e74ce4db18560314f79e522a4785215f27e98..4b602d422dc7bf21f3065f24792059322177280a 100644
(file)
--- a/
gas/config/tc-i386.c
+++ b/
gas/config/tc-i386.c
@@
-6566,7
+6566,7
@@
build_modrm_byte (void)
i.types[op].bitfield.disp8 = 0;
i.types[op].bitfield.disp16 = 0;
i.types[op].bitfield.disp64 = 0;
i.types[op].bitfield.disp8 = 0;
i.types[op].bitfield.disp16 = 0;
i.types[op].bitfield.disp64 = 0;
- if (flag_code != CODE_64BIT)
+ if (flag_code != CODE_64BIT
|| i.prefix[ADDR_PREFIX]
)
{
/* Must be 32 bit */
i.types[op].bitfield.disp32 = 1;
{
/* Must be 32 bit */
i.types[op].bitfield.disp32 = 1;
@@
-6636,7
+6636,7
@@
build_modrm_byte (void)
i.types[op].bitfield.disp8 = 0;
i.types[op].bitfield.disp16 = 0;
i.types[op].bitfield.disp64 = 0;
i.types[op].bitfield.disp8 = 0;
i.types[op].bitfield.disp16 = 0;
i.types[op].bitfield.disp64 = 0;
- if (flag_code != CODE_64BIT)
+ if (flag_code != CODE_64BIT
|| i.prefix[ADDR_PREFIX]
)
{
/* Must be 32 bit */
i.types[op].bitfield.disp32 = 1;
{
/* Must be 32 bit */
i.types[op].bitfield.disp32 = 1;