projects
/
external
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6418c17
)
* elf64-ppc.c (build_plt_stub): Fix off by one error in branch
author
Alan Modra
<amodra@gmail.com>
Wed, 5 Dec 2012 04:58:51 +0000
(
04:58
+0000)
committer
Alan Modra
<amodra@gmail.com>
Wed, 5 Dec 2012 04:58:51 +0000
(
04:58
+0000)
to glink.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elf64-ppc.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index
d450599
..
ce1d704
100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-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>
PR ld/10629
diff --git
a/bfd/elf64-ppc.c
b/bfd/elf64-ppc.c
index
94f3c42
..
10b6f9d
100644
(file)
--- 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 > 3276
7
)
- glinkoff += (pltindex - 3276
7
) * 4;
+ if (pltindex > 3276
8
)
+ glinkoff += (pltindex - 3276
8
) * 4;
to = (glinkoff
+ htab->glink->output_offset
+ htab->glink->output_section->vma);