summaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2010-04-13 04:05:27 +0000
committerAlan Modra <amodra@bigpond.net.au>2010-04-13 04:05:27 +0000
commitecb8828191fac375f5e3446670b38ab7bea32378 (patch)
treeca268f2326a5a2a626ea00686f3068becdb79a64 /bfd/elf64-ppc.c
parent5b1b19896cb04434020b6cafd58ac1e630deedf2 (diff)
downloadbinutils-redhat-ecb8828191fac375f5e3446670b38ab7bea32378.tar.gz
* elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
when optimizing high got_tlsgd/ld insns.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 3259e2e719..769b0a4361 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);