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:34:17 +0930 |
commit | 337d0bf887a3ed6b6b2123fecfec0736640edcaf (patch) | |
tree | a7047c31834af362193c2af8c4f2cdb2cedbafef /bfd/elf32-ppc.c | |
parent | 5072b52d28f56586a708019a97b8a4456c0c7212 (diff) | |
download | gdb-337d0bf887a3ed6b6b2123fecfec0736640edcaf.zip gdb-337d0bf887a3ed6b6b2123fecfec0736640edcaf.tar.gz gdb-337d0bf887a3ed6b6b2123fecfec0736640edcaf.tar.bz2 |
PR27755, powerpc-ld infinite loop
PR 27755
* elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
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 d6ed501..830c920 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -4242,7 +4242,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; |