From 76a0ddacc00c5345b7eb4bcb88fa8fdb63ea7248 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Fri, 1 Dec 2000 03:08:32 +0000 Subject: 2000-11-30 Diego Novillo * tc-i386.c (md_assemble): Swap i.disp_relocs when using intel syntax. 2000-11-30 Diego Novillo * intel.s, intel.d: New test for @GOT references. --- gas/ChangeLog | 5 +++++ gas/config/tc-i386.c | 8 ++++++++ gas/testsuite/ChangeLog | 4 ++++ gas/testsuite/gas/i386/intel.d | 1 + gas/testsuite/gas/i386/intel.s | 1 + 5 files changed, 19 insertions(+) (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index e9176ce..f82e499 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-11-30 Diego Novillo + + * tc-i386.c (md_assemble): Swap i.disp_relocs when using intel + syntax. + 2000-11-29 Richard Henderson * dwarf2dbg.c: Rewrite from scratch. Queue all debugging output 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) { diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 1e3638e..9ef71b3 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-11-30 Diego Novillo + + * intel.s, intel.d: New test for @GOT references. + 2000-11-28 Hans-Peter Nilsson * gas/sh/err.exp: New, framework for error-testing. diff --git a/gas/testsuite/gas/i386/intel.d b/gas/testsuite/gas/i386/intel.d index ff46bf8..5f53afa 100644 --- a/gas/testsuite/gas/i386/intel.d +++ b/gas/testsuite/gas/i386/intel.d @@ -624,3 +624,4 @@ Disassembly of section .text: a7d: 90 [ ]*nop a7e: 90 [ ]*nop a7f: 90 [ ]*nop + a80: 8b 83 00 00 00 00 [ ]*mov 0x0\(%ebx\),%eax diff --git a/gas/testsuite/gas/i386/intel.s b/gas/testsuite/gas/i386/intel.s index 0aaeb9e..7b4c2f0 100644 --- a/gas/testsuite/gas/i386/intel.s +++ b/gas/testsuite/gas/i386/intel.s @@ -619,3 +619,4 @@ rot5: nop nop nop + mov eax, DWORD PTR gs_foo@GOT[ebx] -- cgit v1.1