]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
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:06:05 +0000 (15:36 +0930)
PR 27755
* elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.

(cherry picked from commit 337d0bf887a3ed6b6b2123fecfec0736640edcaf)

bfd/ChangeLog
bfd/elf32-ppc.c

index e97150b6202779465285b7053b0f82bcdfd7265d..a8b7415fadce0ce2917acfbe0c2ba5f9217092ca 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-04-23  Eric Botcazou  <ebotcazou@adacore.com>
 
        * elf.c (special_sections_p): Add .persistent.bss.
index fd88f3d718e0dda5a7f41d79cc0ceb89cc3c4bd7..d278a1ab8fa6328b3103583c58926ef764f4da46 100644 (file)
@@ -4245,7 +4245,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;