aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1996-01-22 20:10:51 +0000
committerMichael Meissner <gnu@the-meissners.org>1996-01-22 20:10:51 +0000
commite37a16442ab45ed0c20e20ae459fec8140307e48 (patch)
treea7eb3b52776731ff3abc7d0e0fd6fd161505e3f6 /bfd
parent84aa3e6938a4ba749dd30e8d7416a797feecb4aa (diff)
downloadgdb-e37a16442ab45ed0c20e20ae459fec8140307e48.zip
gdb-e37a16442ab45ed0c20e20ae459fec8140307e48.tar.gz
gdb-e37a16442ab45ed0c20e20ae459fec8140307e48.tar.bz2
Fix typo in last change
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf32-ppc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 9e087cf..6554cf9 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -2294,8 +2294,8 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section,
ret = false;
continue;
}
- relocation = (sdata->sym_hash->root.u.def.value
- + sdata->sym_hash->root.u.def.section->output_section->vma
+ relocation = (sdata2->sym_hash->root.u.def.value
+ + sdata2->sym_hash->root.u.def.section->output_section->vma
- relocation);
break;
@@ -2311,8 +2311,8 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section,
if (strcmp (name, ".sdata") == 0 || strcmp (name, ".sbss") == 0)
{
reg = 13;
- relocation = (sdata2->sym_hash->root.u.def.value
- + sdata2->sym_hash->root.u.def.section->output_section->vma
+ relocation = (sdata->sym_hash->root.u.def.value
+ + sdata->sym_hash->root.u.def.section->output_section->vma
- relocation);
}