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.
This commit is contained in:
Diego Novillo 2000-12-01 03:08:32 +00:00
parent c5f0f3d0c8
commit 76a0ddacc0
5 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-11-30 Diego Novillo <dnovillo@redhat.com>
* tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
syntax.
2000-11-29 Richard Henderson <rth@redhat.com>
* dwarf2dbg.c: Rewrite from scratch. Queue all debugging output

View File

@ -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)
{

View File

@ -1,3 +1,7 @@
2000-11-30 Diego Novillo <dnovillo@redhat.com>
* intel.s, intel.d: New test for @GOT references.
2000-11-28 Hans-Peter Nilsson <hp@bitrange.com>
* gas/sh/err.exp: New, framework for error-testing.

View File

@ -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

View File

@ -619,3 +619,4 @@ rot5:
nop
nop
nop
mov eax, DWORD PTR gs_foo@GOT[ebx]