aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-sparc.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-08-09 15:07:32 +0000
committerIan Lance Taylor <ian@airs.com>1999-08-09 15:07:32 +0000
commit840a9995b31c15a5bcac8f1753690d20535036cd (patch)
tree37809bbedc5db4f693f1cf4e69a8b9beb3e5f7c6 /bfd/elf64-sparc.c
parentb33b6e456987e1ca8ed68589327aa62de44d9d6c (diff)
downloadgdb-840a9995b31c15a5bcac8f1753690d20535036cd.zip
gdb-840a9995b31c15a5bcac8f1753690d20535036cd.tar.gz
gdb-840a9995b31c15a5bcac8f1753690d20535036cd.tar.bz2
1999-08-09 Jakub Jelinek <jj@ultra.linux.cz>
* elf64-sparc.c (sparc64_elf_relocate_section): Back out part of the Sep. 4th, 1998 change. glibc 2.0.x dynamic linker had bug, not binutils. * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf64-sparc.c')
-rw-r--r--bfd/elf64-sparc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c
index e98f1be..b027897 100644
--- a/bfd/elf64-sparc.c
+++ b/bfd/elf64-sparc.c
@@ -2249,15 +2249,7 @@ sparc64_elf_relocate_section (output_bfd, info, input_bfd, input_section,
ELF64_R_TYPE_INFO (
ELF64_R_TYPE_DATA (rel->r_info),
r_type));
-
- /* For non-RELATIVE dynamic relocations, we keep the
- same symbol, and so generally the same addend. But
- we do need to adjust those relocations referencing
- sections. */
- outrel.r_addend = rel->r_addend;
- if (r_symndx < symtab_hdr->sh_info
- && ELF_ST_TYPE (sym->st_info) == STT_SECTION)
- outrel.r_addend += sec->output_offset+sym->st_value;
+ outrel.r_addend = relocation + rel->r_addend;
}
}