patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch
changeset 1604 b3f0173f10f3
parent 1603 e0ef539e23d9
child 1605 c400f421858e
     1.1 --- a/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch	Wed Oct 28 18:55:40 2009 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,31 +0,0 @@
     1.4 -Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch
     1.5 -
     1.6 --= BEGIN original header =-
     1.7 -Check LD_RUN_PATH length, copied from buildroot.
     1.8 -
     1.9 - binutils-2.18.50.0.6/ld/emultempl/elf32.em |    4     4     0     0 ++++
    1.10 - 1 file changed, 4 insertions(+)
    1.11 -
    1.12 --= END original header =-
    1.13 -
    1.14 -diff -durN binutils-2.18.50.0.4.orig/ld/emultempl/elf32.em binutils-2.18.50.0.4/ld/emultempl/elf32.em
    1.15 ---- binutils-2.18.50.0.4.orig/ld/emultempl/elf32.em	2008-02-08 17:44:55.000000000 +0100
    1.16 -+++ binutils-2.18.50.0.4/ld/emultempl/elf32.em	2009-03-07 12:17:31.000000000 +0100
    1.17 -@@ -1220,6 +1220,8 @@
    1.18 - 	      && command_line.rpath == NULL)
    1.19 - 	    {
    1.20 - 	      lib_path = (const char *) getenv ("LD_RUN_PATH");
    1.21 -+	      if ((lib_path) && (strlen (lib_path) == 0))
    1.22 -+		  lib_path = NULL;
    1.23 - 	      if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
    1.24 - 						      force))
    1.25 - 		break;
    1.26 -@@ -1404,6 +1406,8 @@
    1.27 -   rpath = command_line.rpath;
    1.28 -   if (rpath == NULL)
    1.29 -     rpath = (const char *) getenv ("LD_RUN_PATH");
    1.30 -+  if ((rpath) && (strlen (rpath) == 0))
    1.31 -+      rpath = NULL;
    1.32 -   if (! (bfd_elf_size_dynamic_sections
    1.33 - 	 (output_bfd, command_line.soname, rpath,
    1.34 - 	  command_line.filter_shlib,