aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-05-03 13:37:00 +0930
committerAlan Modra <amodra@gmail.com>2021-05-03 15:46:47 +0930
commitc4e78c0868a22971680217a41fdb73516a26813d (patch)
tree3e2e000df251946f5ba2066e97d8715fbdeda3e0
parent33973d228c9bdaf36746e9e2d7c0b07c2eb0d2c3 (diff)
downloadgdb-binutils-2_34-branch.zip
gdb-binutils-2_34-branch.tar.gz
gdb-binutils-2_34-branch.tar.bz2
PR27755, powerpc-ld infinite loopbinutils-2_34-branch
PR 27755 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop. (cherry picked from commit 337d0bf887a3ed6b6b2123fecfec0736640edcaf)
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-ppc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ad6f934..7fbea17 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2021-05-03 Alan Modra <amodra@gmail.com>
+
+ PR 27755
+ * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
+
2020-10-07 H.J. Lu <hongjiu.lu@intel.com>
PR ld/26711
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index bbb154f..72e4ea5 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -4237,7 +4237,7 @@ ppc_elf_inline_plt (struct bfd_link_info *info)
return FALSE;
relend = relstart + sec->reloc_count;
- for (rel = relstart; rel < relend; )
+ for (rel = relstart; rel < relend; rel++)
{
enum elf_ppc_reloc_type r_type;
unsigned long r_symndx;