diff options
author | DJ Delorie <dj@redhat.com> | 2002-12-20 21:14:20 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2002-12-20 21:14:20 +0000 |
commit | 8f46beda1f90fdf502716f53457b17abea3ed098 (patch) | |
tree | 4ce31b0b83d71120fd4b0f6ef1e4400bf49be1b4 /gas/config | |
parent | 9a7e42b63ffa91ba2ba1660fc7c85e855f5eb55e (diff) | |
download | gdb-8f46beda1f90fdf502716f53457b17abea3ed098.zip gdb-8f46beda1f90fdf502716f53457b17abea3ed098.tar.gz gdb-8f46beda1f90fdf502716f53457b17abea3ed098.tar.bz2 |
* config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
BFD_RELOC_XSTORMY16_12.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-xstormy16.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-xstormy16.c b/gas/config/tc-xstormy16.c index 592ba99..2e006a8 100644 --- a/gas/config/tc-xstormy16.c +++ b/gas/config/tc-xstormy16.c @@ -331,10 +331,13 @@ md_cgen_lookup_reloc (insn, operand, fixP) case XSTORMY16_OPERAND_IMM3: case XSTORMY16_OPERAND_IMM3B: case XSTORMY16_OPERAND_IMM4: - case XSTORMY16_OPERAND_IMM12: case XSTORMY16_OPERAND_HMEM8: return BFD_RELOC_NONE; + case XSTORMY16_OPERAND_IMM12: + fixP->fx_where += 2; + return BFD_RELOC_XSTORMY16_12; + case XSTORMY16_OPERAND_IMM8: case XSTORMY16_OPERAND_LMEM8: return fixP->fx_pcrel ? BFD_RELOC_8_PCREL : BFD_RELOC_8; |