Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Build broken on amd64 - __explicit_bzero



On Mon, Jun 24, 2013 at 11:21:46AM -0700, Paul Goyette wrote:
> With sources updated today at 12:50 UTC

Try the attached patch. Otherwise, this is PR 47922.

Joerg
Index: elf32.em
===================================================================
RCS file: 
/home/joerg/repo/netbsd/src/external/gpl3/binutils/dist/ld/emultempl/elf32.em,v
retrieving revision 1.5
diff -u -p -r1.5 elf32.em
--- elf32.em    7 Aug 2012 01:09:13 -0000       1.5
+++ elf32.em    24 Jun 2013 20:03:09 -0000
@@ -310,11 +310,17 @@ gld${EMULATION_NAME}_try_needed (struct 
                                 int force)
 {
   bfd *abfd;
-  const char *name = needed->name;
+  char *name;
   const char *soname;
   int link_class;
 
+  if (ld_sysroot)
+    name = concat(ld_sysroot, "/", needed->name, (const char *)NULL);
+  else
+    name = needed->name;
   abfd = bfd_openr (name, bfd_get_target (link_info.output_bfd));
+  if (ld_sysroot)
+    free(name);
   if (abfd == NULL)
     return FALSE;
 


Home | Main Index | Thread Index | Old Index