PR27755, powerpc-ld infinite loop

PR 27755
	* elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
This commit is contained in:
Alan Modra 2021-05-03 13:37:00 +09:30
parent 5072b52d28
commit 337d0bf887
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2021-05-03 Alan Modra <amodra@gmail.com>
PR 27755
* elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
2021-05-03 Alan Modra <amodra@gmail.com>
* elf32-csky.c (is_mapping_symbol_name): New function.

View File

@ -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;