* elf32-spu.c (spu_elf_create_sections): Properly iterate over
authorAlan Modra <amodra@gmail.com>
Wed, 27 Jun 2007 07:12:54 +0000 (07:12 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 27 Jun 2007 07:12:54 +0000 (07:12 +0000)
input bfds.

bfd/ChangeLog
bfd/elf32-spu.c

index fb3883a2ce0ca7eab09894ae468212f438528649..a35e408636ceef3339de0f7a24e19d0b2560f67d 100644 (file)
@@ -2,6 +2,7 @@
 
        * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over
        input bfds.
+       * elf32-spu.c (spu_elf_create_sections): Likewise.
 
 2007-06-26  H.J. Lu  <hongjiu.lu@intel.com>
 
index 844eee6ca265e13f59dbbb568abac659c366a3aa..fcda1e3484bf0f2f5bf47f5eb3e33faf80abe340 100644 (file)
@@ -533,7 +533,7 @@ spu_elf_create_sections (bfd *output_bfd,
   htab->stack_analysis = stack_analysis;
   htab->emit_stack_syms = emit_stack_syms;
 
-  for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->next)
+  for (ibfd = info->input_bfds; ibfd != NULL; ibfd = ibfd->link_next)
     if (bfd_get_section_by_name (ibfd, SPU_PTNOTE_SPUNAME) != NULL)
       break;