From: Alan Modra Date: Tue, 29 Jul 2003 06:55:34 +0000 (+0000) Subject: * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c861c80c03a3867c0edf47cbd5816af6c94a7822;p=binutils-gdb.git * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 812e6419093..0478ffe85d4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2003-07-29 Alan Modra + + * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF. + 2003-07-29 Jakub Jelinek * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns. diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index 506ae2f27d2..16677f84cd3 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -3948,8 +3948,10 @@ tc_gen_reloc (section, fixp) rel->addend = 0; rel->howto = bfd_reloc_type_lookup (stdoutput, r_type); +#ifdef OBJ_ELF if (rel->howto->type == R_SH_IND12W) rel->addend += fixp->fx_offset - 4; +#endif if (rel->howto == NULL) { as_bad_where (fixp->fx_file, fixp->fx_line,