* elf64-ppc.c (ppc64_elf_relocation_section): Ensure
*r_offset == r_addend for RELATIVE relocs against .got.
This commit is contained in:
parent
dad27d18ac
commit
23fbd6fa70
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2003-06-17 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.
|
* elf64-ppc.c (ppc64_elf_relocate_section): Optimize unaligned relocs.
|
||||||
|
|
|
@ -7970,7 +7970,8 @@ ppc64_elf_relocate_section (output_bfd, info, input_bfd, input_section,
|
||||||
/* Write the .got section contents for the sake
|
/* Write the .got section contents for the sake
|
||||||
of prelink. */
|
of prelink. */
|
||||||
loc = htab->sgot->contents + off;
|
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
|
else
|
||||||
outrel.r_info = ELF64_R_INFO (indx, R_PPC64_GLOB_DAT);
|
outrel.r_info = ELF64_R_INFO (indx, R_PPC64_GLOB_DAT);
|
||||||
|
|
Loading…
Reference in a new issue