patches/binutils/2.18.50.0.9/120-check-ldrunpath-length.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 03 21:11:41 2009 +0000 (2009-01-03)
changeset 1112 c72aecd1a9ef
parent 747 d3e603e7c17c
permissions -rw-r--r--
Get rid of all stuff related to building a /delivery' traball:
- building a delivery tarball has long been broken (since crostool-Ng is installable)
- get rid of implied do_print_filename, that can be mis-leading now tarballs can not be built

/trunk/scripts/build/kernel/bare-metal.sh | 4 0 4 0 ----
/trunk/scripts/build/kernel/linux.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/tools/100-libelf.sh | 4 0 4 0 ----
/trunk/scripts/build/tools/200-sstrip.sh | 11 1 10 0 +----------
/trunk/scripts/build/binutils.sh | 4 0 4 0 ----
/trunk/scripts/build/cc/gcc.sh | 5 0 5 0 -----
/trunk/scripts/build/debug/000-template.sh | 11 0 11 0 -----------
/trunk/scripts/build/debug/100-dmalloc.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/400-ltrace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/300-gdb.sh | 7 0 7 0 -------
/trunk/scripts/build/debug/500-strace.sh | 4 0 4 0 ----
/trunk/scripts/build/debug/200-duma.sh | 4 0 4 0 ----
/trunk/scripts/build/libc/none.sh | 5 0 5 0 -----
/trunk/scripts/build/libc/glibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/libc/uClibc.sh | 6 0 6 0 ------
/trunk/scripts/build/libc/eglibc.sh | 10 0 10 0 ----------
/trunk/scripts/build/gmp.sh | 6 0 6 0 ------
/trunk/scripts/build/mpfr.sh | 6 0 6 0 ------
/trunk/docs/overview.txt | 9 0 9 0 ---------
20 files changed, 1 insertion(+), 128 deletions(-)
yann@652
     1
diff -durN binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em binutils-2.18.50.0.8/ld/emultempl/elf32.em
yann@652
     2
--- binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em	2008-07-10 17:33:23.000000000 +0200
yann@652
     3
+++ binutils-2.18.50.0.8/ld/emultempl/elf32.em	2008-07-13 23:19:29.000000000 +0200
yann@652
     4
@@ -1220,6 +1220,8 @@
yann@652
     5
 	      && command_line.rpath == NULL)
yann@652
     6
 	    {
yann@652
     7
 	      lib_path = (const char *) getenv ("LD_RUN_PATH");
yann@652
     8
+	      if ((lib_path) && (strlen (lib_path) == 0))
yann@652
     9
+		  lib_path = NULL;
yann@652
    10
 	      if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
yann@652
    11
 						      force))
yann@652
    12
 		break;
yann@652
    13
@@ -1405,6 +1407,8 @@
yann@652
    14
   rpath = command_line.rpath;
yann@652
    15
   if (rpath == NULL)
yann@652
    16
     rpath = (const char *) getenv ("LD_RUN_PATH");
yann@652
    17
+  if ((rpath) && (strlen (rpath) == 0))
yann@652
    18
+      rpath = NULL;
yann@652
    19
   if (! (bfd_elf_size_dynamic_sections
yann@652
    20
 	 (link_info.output_bfd, command_line.soname, rpath,
yann@652
    21
 	  command_line.filter_shlib,