aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2000-12-01 03:08:32 +0000
committerDiego Novillo <dnovillo@google.com>2000-12-01 03:08:32 +0000
commit76a0ddacc00c5345b7eb4bcb88fa8fdb63ea7248 (patch)
tree8425ad0919e74ff8bb4a1308218dd8556b682ced /gas/config
parentc5f0f3d0c87301d62938d9867e460225066498e2 (diff)
downloadgdb-76a0ddacc00c5345b7eb4bcb88fa8fdb63ea7248.zip
gdb-76a0ddacc00c5345b7eb4bcb88fa8fdb63ea7248.tar.gz
gdb-76a0ddacc00c5345b7eb4bcb88fa8fdb63ea7248.tar.bz2
2000-11-30 Diego Novillo <dnovillo@redhat.com>
* tc-i386.c (md_assemble): Swap i.disp_relocs when using intel syntax. 2000-11-30 Diego Novillo <dnovillo@redhat.com> * intel.s, intel.d: New test for @GOT references.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 737acd9..ed5c956 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1383,6 +1383,11 @@ md_assemble (line)
{
union i386_op temp_op;
unsigned int temp_type;
+#ifdef BFD_ASSEMBLER
+ enum bfd_reloc_code_real temp_disp_reloc;
+#else
+ int temp_disp_reloc;
+#endif
int xchg1 = 0;
int xchg2 = 0;
@@ -1402,6 +1407,9 @@ md_assemble (line)
temp_op = i.op[xchg2];
i.op[xchg2] = i.op[xchg1];
i.op[xchg1] = temp_op;
+ temp_disp_reloc = i.disp_reloc[xchg2];
+ i.disp_reloc[xchg2] = i.disp_reloc[xchg1];
+ i.disp_reloc[xchg1] = temp_disp_reloc;
if (i.mem_operands == 2)
{