* elf32-ppc.c (ppc_elf_select_plt_layout): Properly iterate over

input bfds.
This commit is contained in:
Alan Modra 2007-06-27 06:42:14 +00:00
parent 2cea28dd72
commit 60b31e8d17
2 changed files with 6 additions and 1 deletions

View 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:

View 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)