From 337d0bf887a3ed6b6b2123fecfec0736640edcaf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 3 May 2021 13:37:00 +0930 Subject: [PATCH] PR27755, powerpc-ld infinite loop PR 27755 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop. --- bfd/ChangeLog | 5 +++++ bfd/elf32-ppc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2