From: Diego Novillo Date: Fri, 1 Dec 2000 03:08:32 +0000 (+0000) Subject: 2000-11-30 Diego Novillo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76a0ddacc00c5345b7eb4bcb88fa8fdb63ea7248;p=binutils-gdb.git 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index e9176ce517a..f82e4996fe5 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 737acd97107..ed5c956888d 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 1e3638e315d..9ef71b37cfe 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 ff46bf886c8..5f53afaa0e9 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 0aaeb9e4c1a..7b4c2f04bd3 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]