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;