This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
0421 MCore-little-endian gas patch
- To: binutils at sourceware dot cygnus dot com
- Subject: 0421 MCore-little-endian gas patch
- From: Rodney Brown <rdb at localhost>
- Date: Thu, 4 May 2000 00:13:20 +1000 (EST)
- Reply-To: RDBrown at mira dot net, RodneyBrown at pmsc dot com
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)