From 60b31e8d17901051e1fefd271c4681e8c16ef459 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 27 Jun 2007 06:42:14 +0000 Subject: [PATCH] * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over input bfds. --- bfd/ChangeLog | 5 +++++ bfd/elf32-ppc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index fcad646829..fb3883a2ce 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2007-06-27 Alan Modra + + * elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over + input bfds. + 2007-06-26 H.J. Lu * dwarf2.c (find_line): New. Contains the duplicated code from: diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index bf5bcf3d4e..0e36be65ad 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)