aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorJohn Darrington <john@darrington.wattle.id.au>2018-10-23 15:33:18 +0200
committerJohn Darrington <john@darrington.wattle.id.au>2018-10-23 16:09:29 +0200
commit405b61965ff7608840cfda36083c1be1f926ccdb (patch)
tree8ce1a32fc40c2ab1881324a25dd0ba0e5efd3f75 /gas/config
parent420ecd9ce8a3d61f950bf24d8d7b8827d09f59db (diff)
downloadbinutils-405b61965ff7608840cfda36083c1be1f926ccdb.zip
binutils-405b61965ff7608840cfda36083c1be1f926ccdb.tar.gz
binutils-405b61965ff7608840cfda36083c1be1f926ccdb.tar.bz2
S12Z: Handle 16 bit fixups which are constant.
Commit 1f38083f425e03faf55595414daf291306738222 added a test to check that the assembler handled fixups with resolved to constant values. We were not handling this in the case of 16 bit values. This change fixes that. * gas/config/tc-s12z.c (md_apply_fix): Handle BFD_RELOC_16
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-s12z.c3
1 files changed, 3 insertions, 0 deletions
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;