PR27755, powerpc-ld infinite loop
authorAlan Modra <amodra@gmail.com>
Mon, 3 May 2021 04:07:00 +0000 (13:37 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 3 May 2021 06:04:17 +0000 (15:34 +0930)
PR 27755
* elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.

bfd/ChangeLog
bfd/elf32-ppc.c

index 3a23a18bb9ef806e9af124d7076d43239795dba6..fc7a1b89772ecfa224313af4cbac81d4560b92f2 100644 (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.
index d6ed501245cd537a4ddb2137c6163cf827bf6a50..830c9200b0cc3b32152264ff9f30c8ce461bc6ca 100644 (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;