This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

0421 MCore-little-endian gas patch


Patch to the 0421 snapshot to support gas built with --target=mcore-mcore-elf
on x86-linux.

2000-05-01	<RodneyBrown@pmsc.com>

	config/tc-mcore.c (md_apply_fix3): BFD_RELOC_MCORE_PCREL_IMM11BY2
	Fix little-endian case

--- gas/config/tc-mcore.c.orig	Fri Feb 11 08:31:13 2000
+++ gas/config/tc-mcore.c	Wed May  3 00:21:58 2000
@@ -2142,16 +2142,16 @@
       if (target_big_endian)
 	{
 	  buf[0] |= ((val >> 8) & 0x7);
 	  buf[1] |= (val & 0xff);
 	}
       else
 	{
-	  buf[0] |= ((val >> 8) & 0x7);
-	  buf[1] |= (val & 0xff);
+	  buf[1] |= ((val >> 8) & 0x7);
+	  buf[0] |= (val & 0xff);
 	}
       break;
 
     case BFD_RELOC_MCORE_PCREL_IMM8BY4:	/* lower 8 bits of 2 byte opcode */
       val += 3;
       val /= 4;
       if (val & ~0xff)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]