aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2003-06-17 12:39:41 +0000
committerJakub Jelinek <jakub@redhat.com>2003-06-17 12:39:41 +0000
commit23fbd6fa706e7861ba00a0553ed2eb87785345f5 (patch)
treef073d89baf01b62757446bad3aaf4583a53a6db0 /bfd
parentdad27d18ac0175ce7d0a2859b9b0e638c3eb46a5 (diff)
downloadfsf-binutils-gdb-23fbd6fa706e7861ba00a0553ed2eb87785345f5.zip
fsf-binutils-gdb-23fbd6fa706e7861ba00a0553ed2eb87785345f5.tar.gz
fsf-binutils-gdb-23fbd6fa706e7861ba00a0553ed2eb87785345f5.tar.bz2
* elf64-ppc.c (ppc64_elf_relocation_section): Ensure
*r_offset == r_addend for RELATIVE relocs against .got.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf64-ppc.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f738d5a..46ac718 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-17 Jakub Jelinek <jakub@redhat.com>
+
+ * elf64-ppc.c (ppc64_elf_relocation_section): Ensure
+ *r_offset == r_addend for RELATIVE relocs against .got.
+
2003-06-17 Alan Modra <amodra@bigpond.net.au>
* elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index ca58c10..e7c0836 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -7970,7 +7970,8 @@ ppc64_elf_relocate_section (output_bfd, info, input_bfd, input_section,
/* Write the .got section contents for the sake
of prelink. */
loc = htab->sgot->contents + off;
- bfd_put_64 (output_bfd, outrel.r_addend, loc);
+ bfd_put_64 (output_bfd, outrel.r_addend + relocation,
+ loc);
}
else
outrel.r_info = ELF64_R_INFO (indx, R_PPC64_GLOB_DAT);