public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* SH build error
@ 2003-07-29  8:12 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2003-07-29  8:12 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-29  8:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-29  8:12 SH build error Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).