On 3/1/12 6:49 PM, Bruce Dubbs wrote:
You propose adding
      --with-sysroot=$LFS        \
      --with-lib-path=/tools/lib \

The idea of sysroot is that its supposed to configure your compiler and linker to consider DIR as the root location where resources for your cross target live.

~/binutils-2.22 # find . -name configure -exec grep -H with\-sysroot '{}' \;
./gold/configure:  --with-sysroot=DIR    search for usr/lib et al within DIR
./gold/configure:# Check whether --with-sysroot was given.
./ld/configure:  --with-sysroot=DIR Search for usr/lib et al within DIR.
./ld/configure:# Check whether --with-sysroot was given.

That has the basic effect of setting two values in ld's configure:

 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
 use_sysroot=yes

The define is used when compiling ldmain.c:

gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.22/ld -I. -I../../binutils-2.22/ld -I../bfd -I../../binutils-2.22/ld/../bfd -I../../binutils-2.22/ld/../include -g -O2 -DENABLE_PLUGINS -DLOCALEDIR="\"/tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -g -O2 -MT ldmain.o -MD -MP -MF .deps/ldmain.Tpo -c -o ldmain.o \
  -DDEFAULT_EMULATION='"elf_x86_64"' \
-DBINDIR='"/tools/bin"' -DTOOLBINDIR='"/tools/x86_64-lfs-linux-gnu/bin"' \
  -DTARGET='"x86_64-lfs-linux-gnu"' -DTARGET_SYSTEM_ROOT=\"/mnt/lfs\" \
  ../../binutils-2.22/ld/ldmain.c

Which sets up sysroot path logic in ld. (Take a peek at ld/ldmain.c and ld/ldfile.c)

use_sysroot=yes triggers path logic in the generation of the ldscripts. I've attached a patch which shows the difference of one of the scripts when using sysroot as opposed to not. The "+"s are with sysroot.

For --with-lib-path:

binutils-2.22 $ find . -name configure -exec grep -H with\-lib\-path '{}' \;
./ld/configure:  --with-lib-path=dir1:dir2...  set default LIB_PATH
./ld/configure:# Check whether --with-lib-path was given.

So that sets the default value of LIB_PATH which is again used when generating the ldscripts - in our case it's adding /tools/lib to the path. The diff actually shows up the difference in paths in the SEARCH_DIR in the scripts. --with-lib-path=/tools/lib adds /tools/lib to the search path, --with-sysroot removes the target specific path components and adds C logic.

JH
diff -Naur binutils-build-sysroot-libdir/ld/eelf_x86_64.c 
binutils-build-nosysroot-nolibdir/ld/eelf_x86_64.c
--- binutils-build-sysroot-libdir/ld/eelf_x86_64.c      2012-03-01 
23:31:31.789317951 -0500
+++ binutils-build-nosysroot-nolibdir/ld/eelf_x86_64.c  2012-03-02 
00:29:16.117697363 -0500
@@ -57,9 +57,6 @@
 static void gldelf_x86_64_after_allocation (void);
 static lang_output_section_statement_type *gldelf_x86_64_place_orphan
   (asection *, const char *, int);
-#ifdef HAVE_GLOB
-#include <glob.h>
-#endif
 
 static void
 gldelf_x86_64_map_segments (bfd_boolean need_layout)
@@ -508,251 +505,6 @@
 }
 
 
-/* Add the sysroot to every entry in a path separated by
-   config.rpath_separator.  */
-
-static char *
-gldelf_x86_64_add_sysroot (const char *path)
-{
-  int len, colons, i;
-  char *ret, *p;
-
-  len = strlen (path);
-  colons = 0;
-  i = 0;
-  while (path[i])
-    if (path[i++] == config.rpath_separator)
-      colons++;
-
-  if (path[i])
-    colons++;
-
-  len = len + (colons + 1) * strlen (ld_sysroot);
-  ret = xmalloc (len + 1);
-  strcpy (ret, ld_sysroot);
-  p = ret + strlen (ret);
-  i = 0;
-  while (path[i])
-    if (path[i] == config.rpath_separator)
-      {
-       *p++ = path[i++];
-       strcpy (p, ld_sysroot);
-       p = p + strlen (p);
-      }
-    else
-      *p++ = path[i++];
-
-  *p = 0;
-  return ret;
-}
-
-/* For a native linker, check the file /etc/ld.so.conf for directories
-   in which we may find shared libraries.  /etc/ld.so.conf is really
-   only meaningful on Linux.  */
-
-struct gldelf_x86_64_ld_so_conf
-{
-  char *path;
-  size_t len, alloc;
-};
-
-static bfd_boolean
-gldelf_x86_64_parse_ld_so_conf
-     (struct gldelf_x86_64_ld_so_conf *info, const char *filename);
-
-static void
-gldelf_x86_64_parse_ld_so_conf_include
-     (struct gldelf_x86_64_ld_so_conf *info, const char *filename,
-      const char *pattern)
-{
-  char *newp = NULL;
-#ifdef HAVE_GLOB
-  glob_t gl;
-#endif
-
-  if (pattern[0] != '/')
-    {
-      char *p = strrchr (filename, '/');
-      size_t patlen = strlen (pattern) + 1;
-
-      newp = xmalloc (p - filename + 1 + patlen);
-      memcpy (newp, filename, p - filename + 1);
-      memcpy (newp + (p - filename + 1), pattern, patlen);
-      pattern = newp;
-    }
-
-#ifdef HAVE_GLOB
-  if (glob (pattern, 0, NULL, &gl) == 0)
-    {
-      size_t i;
-
-      for (i = 0; i < gl.gl_pathc; ++i)
-       gldelf_x86_64_parse_ld_so_conf (info, gl.gl_pathv[i]);
-      globfree (&gl);
-    }
-#else
-  /* If we do not have glob, treat the pattern as a literal filename.  */
-  gldelf_x86_64_parse_ld_so_conf (info, pattern);
-#endif
-
-  if (newp)
-    free (newp);
-}
-
-static bfd_boolean
-gldelf_x86_64_parse_ld_so_conf
-     (struct gldelf_x86_64_ld_so_conf *info, const char *filename)
-{
-  FILE *f = fopen (filename, FOPEN_RT);
-  char *line;
-  size_t linelen;
-
-  if (f == NULL)
-    return FALSE;
-
-  linelen = 256;
-  line = xmalloc (linelen);
-  do
-    {
-      char *p = line, *q;
-
-      /* Normally this would use getline(3), but we need to be portable.  */
-      while ((q = fgets (p, linelen - (p - line), f)) != NULL
-            && strlen (q) == linelen - (p - line) - 1
-            && line[linelen - 2] != '\n')
-       {
-         line = xrealloc (line, 2 * linelen);
-         p = line + linelen - 1;
-         linelen += linelen;
-       }
-
-      if (q == NULL && p == line)
-       break;
-
-      p = strchr (line, '\n');
-      if (p)
-       *p = '\0';
-
-      /* Because the file format does not know any form of quoting we
-        can search forward for the next '#' character and if found
-        make it terminating the line.  */
-      p = strchr (line, '#');
-      if (p)
-       *p = '\0';
-
-      /* Remove leading whitespace.  NUL is no whitespace character.  */
-      p = line;
-      while (*p == ' ' || *p == '\f' || *p == '\r' || *p == '\t' || *p == '\v')
-       ++p;
-
-      /* If the line is blank it is ignored.  */
-      if (p[0] == '\0')
-       continue;
-
-      if (CONST_STRNEQ (p, "include") && (p[7] == ' ' || p[7] == '\t'))
-       {
-         char *dir, c;
-         p += 8;
-         do
-           {
-             while (*p == ' ' || *p == '\t')
-               ++p;
-
-             if (*p == '\0')
-               break;
-
-             dir = p;
-
-             while (*p != ' ' && *p != '\t' && *p)
-               ++p;
-
-             c = *p;
-             *p++ = '\0';
-             if (dir[0] != '\0')
-               gldelf_x86_64_parse_ld_so_conf_include (info, filename,
-                                                              dir);
-           }
-         while (c != '\0');
-       }
-      else
-       {
-         char *dir = p;
-         while (*p && *p != '=' && *p != ' ' && *p != '\t' && *p != '\f'
-                && *p != '\r' && *p != '\v')
-           ++p;
-
-         while (p != dir && p[-1] == '/')
-           --p;
-         if (info->path == NULL)
-           {
-             info->alloc = p - dir + 1 + 256;
-             info->path = xmalloc (info->alloc);
-             info->len = 0;
-           }
-         else
-           {
-             if (info->len + 1 + (p - dir) >= info->alloc)
-               {
-                 info->alloc += p - dir + 256;
-                 info->path = xrealloc (info->path, info->alloc);
-               }
-             info->path[info->len++] = config.rpath_separator;
-           }
-         memcpy (info->path + info->len, dir, p - dir);
-         info->len += p - dir;
-         info->path[info->len] = '\0';
-       }
-    }
-  while (! feof (f));
-  free (line);
-  fclose (f);
-  return TRUE;
-}
-
-static bfd_boolean
-gldelf_x86_64_check_ld_so_conf (const char *name, int force)
-{
-  static bfd_boolean initialized;
-  static char *ld_so_conf;
-  struct dt_needed needed;
-
-  if (! initialized)
-    {
-      char *tmppath;
-      struct gldelf_x86_64_ld_so_conf info;
-
-      info.path = NULL;
-      info.len = info.alloc = 0;
-      tmppath = concat (ld_sysroot, "/tools/etc/ld.so.conf",
-                       (const char *) NULL);
-      if (!gldelf_x86_64_parse_ld_so_conf (&info, tmppath))
-       {
-         free (tmppath);
-         tmppath = concat (ld_sysroot, "/etc/ld.so.conf",
-                           (const char *) NULL);
-         gldelf_x86_64_parse_ld_so_conf (&info, tmppath);
-       }
-      free (tmppath);
-
-      if (info.path)
-       {
-         char *d = gldelf_x86_64_add_sysroot (info.path);
-         free (info.path);
-         ld_so_conf = d;
-       }
-      initialized = TRUE;
-    }
-
-  if (ld_so_conf == NULL)
-    return FALSE;
-
-
-  needed.by = NULL;
-  needed.name = name;
-  return gldelf_x86_64_search_needed (ld_so_conf, &needed, force);
-}
-
-
 /* See if an input file matches a DT_NEEDED entry by name.  */
 
 static void
@@ -1156,32 +908,10 @@
        {
          size_t len;
          search_dirs_type *search;
-         struct bfd_link_needed_list *rp;
-         int found;
 
          if (gldelf_x86_64_search_needed (command_line.rpath_link,
                                                  &n, force))
            break;
-         if (gldelf_x86_64_search_needed (command_line.rpath,
-                                                 &n, force))
-           break;
-         found = 0;
-         rp = bfd_elf_get_runpath_list (link_info.output_bfd, &link_info);
-         for (; !found && rp != NULL; rp = rp->next)
-           {
-             char *tmpname = gldelf_x86_64_add_sysroot (rp->name);
-             found = (rp->by == l->by
-                      && gldelf_x86_64_search_needed (tmpname,
-                                                             &n,
-                                                             force));
-             free (tmpname);
-           }
-         if (found)
-           break;
-
-         if (gldelf_x86_64_check_ld_so_conf (l->name, force))
-           break;
-
          len = strlen (l->name);
          for (search = search_head; search != NULL; search = search->next)
            {
@@ -2107,7 +1837,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -2322,7 +2052,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -2541,7 +2271,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -2759,7 +2489,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -2978,7 +2708,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -3197,7 +2927,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -3406,7 +3136,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -3616,7 +3346,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -3825,7 +3555,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -4043,7 +3773,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
@@ -4262,7 +3992,7 @@
              \"elf64-x86-64\")\n\
 OUTPUT_ARCH(i386:x86-64)\n\
 ENTRY(_start)\n\
-SEARCH_DIR(\"/tools/lib\");\n\
+SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib64\"); 
SEARCH_DIR(\"/tools/x86_64-lfs-linux-gnu/lib\");\n\
 SECTIONS\n\
 {\n\
   /* Read-only sections, merged into text segment: */\n\
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.x 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.x
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.x     2012-03-01 
23:31:31.437319725 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.x 2012-03-02 
00:29:14.621704237 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xbn 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xbn
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xbn   2012-03-01 
23:31:31.465319583 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xbn       
2012-03-02 00:29:14.653704090 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xc 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xc
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xc    2012-03-01 
23:31:31.489319463 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xc        
2012-03-02 00:29:14.673704000 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xd 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xd
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xd    2012-03-01 
23:31:31.645318675 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xd        
2012-03-02 00:29:15.945698154 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xdc 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xdc
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xdc   2012-03-01 
23:31:31.665318575 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xdc       
2012-03-02 00:29:16.013697841 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xdw 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xdw
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xdw   2012-03-01 
23:31:31.689318455 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xdw       
2012-03-02 00:29:16.033697749 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xn 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xn
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xn    2012-03-01 
23:31:31.453319643 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xn        
2012-03-02 00:29:14.637704165 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xs 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xs
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xs    2012-03-01 
23:31:31.581318999 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xs        
2012-03-02 00:29:15.681699479 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xsc 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xsc
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xsc   2012-03-01 
23:31:31.605318877 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xsc       
2012-03-02 00:29:15.701699259 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xsw 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xsw
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xsw   2012-03-01 
23:31:31.625318777 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xsw       
2012-03-02 00:29:15.929698226 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xw 
binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xw
--- binutils-build-sysroot-libdir/ld/ldscripts/elf_x86_64.xw    2012-03-01 
23:31:31.553319139 -0500
+++ binutils-build-nosysroot-nolibdir/ld/ldscripts/elf_x86_64.xw        
2012-03-02 00:29:14.693703907 -0500
@@ -3,7 +3,7 @@
              "elf64-x86-64")
 OUTPUT_ARCH(i386:x86-64)
 ENTRY(_start)
-SEARCH_DIR("/tools/lib");
+SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib64"); 
SEARCH_DIR("/tools/x86_64-lfs-linux-gnu/lib");
 SECTIONS
 {
   /* Read-only sections, merged into text segment: */
diff -Naur binutils-build-sysroot-libdir/ld/tmpdir/libpath.exp 
binutils-build-nosysroot-nolibdir/ld/tmpdir/libpath.exp
--- binutils-build-sysroot-libdir/ld/tmpdir/libpath.exp 2012-03-01 
23:31:31.389319966 -0500
+++ binutils-build-nosysroot-nolibdir/ld/tmpdir/libpath.exp     2012-03-02 
00:29:14.581704422 -0500
@@ -1 +1 @@
-set libpath "/tools/lib"
+set libpath "/tools/x86_64-lfs-linux-gnu/lib64 /tools/x86_64-lfs-linux-gnu/lib"
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to