diff options
author | Alan Modra <amodra@gmail.com> | 2012-12-05 04:58:51 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-12-05 04:58:51 +0000 |
commit | 68d6295870ad1d2f4d0a39e8fbf088a3caaaab29 (patch) | |
tree | 134c0176d36d2e8a94eb085587642c7a0c14d781 /bfd/elf64-ppc.c | |
parent | 6418c17342b42f4ecd01d1a55ef45cf5a607708b (diff) | |
download | gdb-68d6295870ad1d2f4d0a39e8fbf088a3caaaab29.zip gdb-68d6295870ad1d2f4d0a39e8fbf088a3caaaab29.tar.gz gdb-68d6295870ad1d2f4d0a39e8fbf088a3caaaab29.tar.bz2 |
* elf64-ppc.c (build_plt_stub): Fix off by one error in branch
to glink.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 94f3c42..10b6f9d 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -9653,8 +9653,8 @@ build_plt_stub (struct ppc_link_hash_table *htab, bfd_vma glinkoff = GLINK_CALL_STUB_SIZE + pltindex * 8; bfd_vma to, from; - if (pltindex > 32767) - glinkoff += (pltindex - 32767) * 4; + if (pltindex > 32768) + glinkoff += (pltindex - 32768) * 4; to = (glinkoff + htab->glink->output_offset + htab->glink->output_section->vma); |