From: Alan Modra Date: Mon, 3 May 2021 04:07:00 +0000 (+0930) Subject: PR27755, powerpc-ld infinite loop X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=337d0bf887a3ed6b6b2123fecfec0736640edcaf;p=binutils-gdb.git PR27755, powerpc-ld infinite loop PR 27755 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 3a23a18bb9e..fc7a1b89772 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2021-05-03 Alan Modra + + PR 27755 + * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop. + 2021-05-03 Alan Modra * elf32-csky.c (is_mapping_symbol_name): New function. diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index d6ed501245c..830c9200b0c 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;