* config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
authorDJ Delorie <dj@redhat.com>
Fri, 20 Dec 2002 21:14:20 +0000 (21:14 +0000)
committerDJ Delorie <dj@redhat.com>
Fri, 20 Dec 2002 21:14:20 +0000 (21:14 +0000)
BFD_RELOC_XSTORMY16_12.

gas/ChangeLog
gas/config/tc-xstormy16.c

index 8870bbdecf8e52b91e43e974809c1e07ed0729e0..fbe346c8b80d076788761e12bcb5de1db2908c4c 100644 (file)
@@ -1,3 +1,8 @@
+2002-12-20  DJ Delorie  <dj@redhat.com>
+
+       * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
+       BFD_RELOC_XSTORMY16_12.
+
 2002-12-19  Alan Modra  <amodra@bigpond.net.au>
 
        * doc/as.texinfo (Invoking): Typo fix.
index 592ba99eb8abf83d097bb74f782a48f53347fcc0..2e006a83347d900e4105fdcf072130371f6c95f2 100644 (file)
@@ -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;
This page took 0.044475 seconds and 4 git commands to generate.