From 8f46beda1f90fdf502716f53457b17abea3ed098 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Fri, 20 Dec 2002 21:14:20 +0000 Subject: [PATCH] * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support BFD_RELOC_XSTORMY16_12. --- gas/ChangeLog | 5 +++++ gas/config/tc-xstormy16.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 8870bbdecf..fbe346c8b8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-12-20 DJ Delorie + + * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support + BFD_RELOC_XSTORMY16_12. + 2002-12-19 Alan Modra * doc/as.texinfo (Invoking): Typo fix. 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; -- 2.34.1