From 7059372d8b56ed3ebed70fec0fdab6616e785c55 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 27 Jun 2007 06:42:14 +0000 Subject: * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over input bfds. --- bfd/elf32-ppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/elf32-ppc.c') diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index bf5bcf3d4ef..0e36be65ad8 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -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) -- cgit v1.2.1