* elf64-ppc.c (ppc64_elf_relocation_section): Ensure
[deliverable/binutils-gdb.git] / bfd / elf64-ppc.c
index ca58c10fca90728fd2f7f79c76a3617234773d63..e7c0836183a736a44d2bcd628fe0899d47253c6d 100644 (file)
@@ -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);
This page took 0.026765 seconds and 4 git commands to generate.