This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
SH build error
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com
- Date: Tue, 29 Jul 2003 16:26:02 +0930
- Subject: SH build error
Fixes a compilation error.
* config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
Index: gas/config/tc-sh.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-sh.c,v
retrieving revision 1.84
diff -u -p -r1.84 tc-sh.c
--- gas/config/tc-sh.c 21 May 2003 12:07:55 -0000 1.84
+++ gas/config/tc-sh.c 26 Jul 2003 14:38:16 -0000
@@ -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,
--
Alan Modra
IBM OzLabs - Linux Technology Centre