From: Alan Modra Date: Wed, 30 Jan 2013 22:31:31 +0000 (+0000) Subject: * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22aa0c7ed3a63e204fec7adfdfce78dd368465e3;p=binutils-gdb.git * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ff85ec7a2e8..8011d9ac4ca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2013-01-31 Alan Modra + + * elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink. + 2013-01-28 Alan Modra * elf64-ppc.c: Use %T to print symbols names and remove redundant diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 2f6999bd096..eca7bb3a68e 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -9772,7 +9772,7 @@ build_plt_stub (struct ppc_link_hash_table *htab, { bfd_put_32 (obfd, CMPLDI_R2_0, p), p += 4; bfd_put_32 (obfd, BNECTR_P4, p), p += 4; - bfd_put_32 (obfd, B_DOT + cmp_branch_off, p), p += 4; + bfd_put_32 (obfd, B_DOT | (cmp_branch_off & 0x3fffffc), p), p += 4; } else bfd_put_32 (obfd, BCTR, p), p += 4;