mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
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
This commit is contained in:
@ -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>
|
2018-10-22 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/gas/all/simple-forward.d,
|
* testsuite/gas/all/simple-forward.d,
|
||||||
|
@ -3815,6 +3815,9 @@ md_apply_fix (fixS *fixP, valueT *valP, segT seg ATTRIBUTE_UNUSED)
|
|||||||
case BFD_RELOC_8:
|
case BFD_RELOC_8:
|
||||||
((bfd_byte *) where)[0] = (bfd_byte) value;
|
((bfd_byte *) where)[0] = (bfd_byte) value;
|
||||||
break;
|
break;
|
||||||
|
case BFD_RELOC_16:
|
||||||
|
bfd_putb16 ((bfd_vma) value, (unsigned char *) where);
|
||||||
|
break;
|
||||||
case BFD_RELOC_24:
|
case BFD_RELOC_24:
|
||||||
bfd_putb24 ((bfd_vma) value, (unsigned char *) where);
|
bfd_putb24 ((bfd_vma) value, (unsigned char *) where);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user