aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-s12z.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d5935b7..759186b 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-23 John Darrington <john@darrington.wattle.id.au>
+
+ * config/tc-s12z.c (md_apply_fix): Handle BFD_RELOC_16 for fixups
+ without a symbol.
+
2018-10-22 Alan Modra <amodra@gmail.com>
* testsuite/gas/all/simple-forward.d,
diff --git a/gas/config/tc-s12z.c b/gas/config/tc-s12z.c
index d3b2ea4..9df8643 100644
--- a/gas/config/tc-s12z.c
+++ b/gas/config/tc-s12z.c
@@ -3815,6 +3815,9 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
case BFD_RELOC_8:
((bfd_byte *) where)[0] = (bfd_byte) value;
break;
+ case BFD_RELOC_16:
+ bfd_putb16 ((bfd_vma) value, (unsigned char *) where);
+ break;
case BFD_RELOC_24:
bfd_putb24 ((bfd_vma) value, (unsigned char *) where);
break;