* elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
authorAlan Modra <amodra@gmail.com>
Wed, 27 Jun 2007 06:42:14 +0000 (06:42 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 27 Jun 2007 06:42:14 +0000 (06:42 +0000)
input bfds.

bfd/ChangeLog
bfd/elf32-ppc.c

index fcad64682998025b6e29cacbedb211c55ee87589..fb3883a2ce0ca7eab09894ae468212f438528649 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-27  Alan Modra  <amodra@bigpond.net.au>
+
+       * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
+       input bfds.
+
 2007-06-26  H.J. Lu  <hongjiu.lu@intel.com>
 
        * dwarf2.c (find_line): New.  Contains the duplicated code from:
index bf5bcf3d4ef456bb78b49e59693589464b39d951..0e36be65ad830d5418df265193469b132f4dd04e 100644 (file)
@@ -3703,7 +3703,7 @@ ppc_elf_select_plt_layout (bfd *output_bfd ATTRIBUTE_UNUSED,
             --secure-plt and we never see REL16 relocs.  */
          if (plt_type == PLT_UNSET)
            plt_type = PLT_OLD;
-         for (ibfd = info->input_bfds; ibfd; ibfd = ibfd->next)
+         for (ibfd = info->input_bfds; ibfd; ibfd = ibfd->link_next)
            if (is_ppc_elf_target (ibfd->xvec))
              {
                if (ppc_elf_tdata (ibfd)->has_rel16)