diff options
author | Alan Modra <amodra@gmail.com> | 2021-05-03 13:37:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-05-03 15:46:47 +0930 |
commit | c4e78c0868a22971680217a41fdb73516a26813d (patch) | |
tree | 3e2e000df251946f5ba2066e97d8715fbdeda3e0 /bfd/elf32-ppc.c | |
parent | 33973d228c9bdaf36746e9e2d7c0b07c2eb0d2c3 (diff) | |
download | binutils-gdb-binutils-2_34-branch.tar.gz |
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)
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index bbb154f3b01..72e4ea5884e 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; |