This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

secure-plt layout not selected


Found during a glibc build.

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

Index: bfd/elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.215
diff -u -p -r1.215 elf32-ppc.c
--- bfd/elf32-ppc.c	15 May 2007 13:55:53 -0000	1.215
+++ bfd/elf32-ppc.c	27 Jun 2007 06:41:21 -0000
@@ -3703,7 +3703,7 @@ ppc_elf_select_plt_layout (bfd *output_b
 	     --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)

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]