mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 17:31:13 +08:00
* elf64-ppc.c (build_plt_stub): Fix off by one error in branch
to glink.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2012-12-05 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* elf64-ppc.c (build_plt_stub): Fix off by one error in branch
|
||||||
|
to glink.
|
||||||
|
|
||||||
2012-12-03 Maciej W. Rozycki <macro@codesourcery.com>
|
2012-12-03 Maciej W. Rozycki <macro@codesourcery.com>
|
||||||
|
|
||||||
PR ld/10629
|
PR ld/10629
|
||||||
|
@ -9653,8 +9653,8 @@ build_plt_stub (struct ppc_link_hash_table *htab,
|
|||||||
bfd_vma glinkoff = GLINK_CALL_STUB_SIZE + pltindex * 8;
|
bfd_vma glinkoff = GLINK_CALL_STUB_SIZE + pltindex * 8;
|
||||||
bfd_vma to, from;
|
bfd_vma to, from;
|
||||||
|
|
||||||
if (pltindex > 32767)
|
if (pltindex > 32768)
|
||||||
glinkoff += (pltindex - 32767) * 4;
|
glinkoff += (pltindex - 32768) * 4;
|
||||||
to = (glinkoff
|
to = (glinkoff
|
||||||
+ htab->glink->output_offset
|
+ htab->glink->output_offset
|
||||||
+ htab->glink->output_section->vma);
|
+ htab->glink->output_section->vma);
|
||||||
|
Reference in New Issue
Block a user