aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-04-05 00:06:46 +0000
committerJeff Law <law@redhat.com>1994-04-05 00:06:46 +0000
commit79381848ca2f6f1ae2f1caa2b4590dead4b5a353 (patch)
treee32d18c2fa8ff933861389c0f5824967bf1e9124 /gas/config/tc-hppa.c
parentc4dd531f11649c6143ef5bad2390374512e5828b (diff)
downloadgdb-79381848ca2f6f1ae2f1caa2b4590dead4b5a353.zip
gdb-79381848ca2f6f1ae2f1caa2b4590dead4b5a353.tar.gz
gdb-79381848ca2f6f1ae2f1caa2b4590dead4b5a353.tar.bz2
* config/tc-hppa.c (tc_gen_reloc): Fix thinko in ELF version.
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r--gas/config/tc-hppa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 5cd40a0..8ba511c 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -2774,10 +2774,9 @@ tc_gen_reloc (section, fixp)
break;
default:
if (fixp->fx_addsy && fixp->fx_addsy->bsym->flags & BSF_FUNCTION)
- relocs[i]->addend = 0;
+ reloc->addend = 0;
else
- relocs[i]->addend = fixp->fx_addnumber;
- break;
+ reloc->addend = fixp->fx_addnumber;
break;
}
break;