0421 MCore-little-endian gas patch
Rodney Brown
rdb@localhost
Wed May 3 07:15:00 GMT 2000
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)
More information about the Binutils
mailing list