* config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
authorAlan Modra <amodra@gmail.com>
Tue, 29 Jul 2003 06:55:34 +0000 (06:55 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 29 Jul 2003 06:55:34 +0000 (06:55 +0000)
gas/ChangeLog
gas/config/tc-sh.c

index 812e6419093ca37e28a92bb897e27933aba77d18..0478ffe85d4321a408295f319e7b14088af7cc97 100644 (file)
@@ -1,3 +1,7 @@
+2003-07-29  Alan Modra  <amodra@bigpond.net.au>
+
+       * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
+
 2003-07-29  Jakub Jelinek  <jakub@redhat.com>
 
        * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
index 506ae2f27d2a21ff46e39caa1e5c4bae9644cb9d..16677f84cd392032d75f137a236d5c6f0a5f634c 100644 (file)
@@ -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,