diff options
author | Alan Modra <amodra@gmail.com> | 2013-01-30 22:31:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-01-30 22:31:31 +0000 |
commit | 22aa0c7ed3a63e204fec7adfdfce78dd368465e3 (patch) | |
tree | 232a0c2bea70837de532bc0ba79c9ef718d53869 /bfd/elf64-ppc.c | |
parent | a99dad3d8972683d60088bfde8031c61596f2b94 (diff) | |
download | gdb-22aa0c7ed3a63e204fec7adfdfce78dd368465e3.zip gdb-22aa0c7ed3a63e204fec7adfdfce78dd368465e3.tar.gz gdb-22aa0c7ed3a63e204fec7adfdfce78dd368465e3.tar.bz2 |
* elf64-ppc.c (build_plt_stub): Correct plt stub branch to glink.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 2f6999b..eca7bb3 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; |