aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorSean Keys <skeys@ipdatasys.com>2012-11-07 20:36:33 +0000
committerSean Keys <skeys@ipdatasys.com>2012-11-07 20:36:33 +0000
commitfcdc4d0c03aa2f0476c72d900c5ced87d423a427 (patch)
tree4cb0dd29c227a0d167853d9f49ab7965081eb11b /gas
parent178df8af8d1b26a645797241f827228517b6c411 (diff)
downloadgdb-fcdc4d0c03aa2f0476c72d900c5ced87d423a427.zip
gdb-fcdc4d0c03aa2f0476c72d900c5ced87d423a427.tar.gz
gdb-fcdc4d0c03aa2f0476c72d900c5ced87d423a427.tar.bz2
2012-11-07 James Murray <jsm@jsm-net.demon.co.uk>
* config/tc-m68hc11.c: Fix R_M68HC12_16B relocation for movb/w
Diffstat (limited to 'gas')
-rw-r--r--gas/config/tc-m68hc11.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-m68hc11.c b/gas/config/tc-m68hc11.c
index 46e6a94..3189121 100644
--- a/gas/config/tc-m68hc11.c
+++ b/gas/config/tc-m68hc11.c
@@ -2219,9 +2219,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
@@ -4459,8 +4459,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: