]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/binutils-tumbl.git/commitdiff
2012-11-07 James Murray <jsm@jsm-net.demon.co.uk>
authorSean Keys <skeys@ipdatasys.com>
Sun, 11 Nov 2012 03:44:49 +0000 (03:44 +0000)
committerSean Keys <skeys@ipdatasys.com>
Sun, 11 Nov 2012 03:44:49 +0000 (03:44 +0000)
* config/tc-m68hc11.c: Fix R_M68HC12_16B relocation for movb/w

gas/ChangeLog
gas/config/tc-m68hc11.c

index c059bccff79c984028e4c40b7d39d26ad6c9ef48..219c27eec32b3ed9e7414d583bbc00ef77c21fe3 100644 (file)
@@ -1,3 +1,7 @@
+2012-11-07  James Murray <jsm@jsm-net.demon.co.uk>
+
+       * config/tc-m68hc11.c: Fix R_M68HC12_16B relocation for movb/w
+
 2012-10-09  Nagajyothi Eggone  <nagajyothi.eggone@amd.com>
 
        * config/tc-i386.c (cpu_arch): Add CPU_BDVER3_FLAGS.
index d2aee868c02f92c9142c31ee7001ad9bb791fb68..88fdf45273efbea0323c2d28933ace8e69937746 100644 (file)
@@ -2229,9 +2229,9 @@ build_indexed_byte (operand *op, int format ATTRIBUTE_UNUSED, int move_insn)
                  byte <<= 3;
                  byte |= 0xe2;
                  number_to_chars_bigendian (f, byte, 1);
+                 f = frag_more (2);
                  fix_new (frag_now, f - frag_now->fr_literal, 2,
                           sym, off, 0, BFD_RELOC_M68HC12_16B);
-                 f = frag_more (2);
                  return 1;
                }
              else
@@ -4471,8 +4471,8 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
       if (value < 0)
         value += 65536;
 
-      where[1] = (value >> 8);
-      where[2] = (value & 0xff);
+      where[0] = (value >> 8);
+      where[1] = (value & 0xff);
       break;
 
     case BFD_RELOC_M68HC11_RL_JUMP: