aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2003-07-29 06:55:34 +0000
committerAlan Modra <amodra@gmail.com>2003-07-29 06:55:34 +0000
commitc861c80c03a3867c0edf47cbd5816af6c94a7822 (patch)
treed33c6bc6d57e6778ff1aebaac4e1292e3d164ac6 /gas/config
parent452575a9aca3dbdbcd6b1f2f8487ceb98beb99db (diff)
downloadgdb-c861c80c03a3867c0edf47cbd5816af6c94a7822.zip
gdb-c861c80c03a3867c0edf47cbd5816af6c94a7822.tar.gz
gdb-c861c80c03a3867c0edf47cbd5816af6c94a7822.tar.bz2
* config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-sh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c
index 506ae2f..16677f8 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,