summaryrefslogtreecommitdiff
path: root/gas/config/tc-xstormy16.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2002-12-20 21:14:20 +0000
committerDJ Delorie <dj@delorie.com>2002-12-20 21:14:20 +0000
commita50c92809a18a05d8e2a5f18580deb1a3aad35e0 (patch)
tree02c266803dc4a8dff225262cf7bb52176264227a /gas/config/tc-xstormy16.c
parent8cec34a92af786fa480825a3079aee9ee273303d (diff)
downloadbinutils-redhat-a50c92809a18a05d8e2a5f18580deb1a3aad35e0.tar.gz
* config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
BFD_RELOC_XSTORMY16_12.
Diffstat (limited to 'gas/config/tc-xstormy16.c')
-rw-r--r--gas/config/tc-xstormy16.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-xstormy16.c b/gas/config/tc-xstormy16.c
index 592ba99eb8..2e006a8334 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;