From 727ac201d4273426750f36d9523a3d48399eba3c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 13 Apr 2010 04:05:29 +0000 Subject: * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location when optimizing high got_tlsgd/ld insns. --- bfd/elf64-ppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf64-ppc.c') diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 3259e2e..769b0a4 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -11650,8 +11650,8 @@ ppc64_elf_relocate_section (bfd *output_bfd, + R_PPC64_GOT_TPREL16_DS); else { - bfd_put_32 (output_bfd, NOP, contents + rel->r_offset); rel->r_offset -= d_offset; + bfd_put_32 (output_bfd, NOP, contents + rel->r_offset); r_type = R_PPC64_NONE; } rel->r_info = ELF64_R_INFO (r_symndx, r_type); -- cgit v1.1