patches/binutils/2.18.50.0.9/120-check-ldrunpath-length.patch
changeset 1617 7d70bcf940a9
parent 1602 1ba79f2126df
parent 1616 1fda13e5d961
child 1618 7f52e1cca71e
     1.1 --- a/patches/binutils/2.18.50.0.9/120-check-ldrunpath-length.patch	Wed Oct 28 12:03:38 2009 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,21 +0,0 @@
     1.4 -diff -durN binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em binutils-2.18.50.0.8/ld/emultempl/elf32.em
     1.5 ---- binutils-2.18.50.0.8.orig/ld/emultempl/elf32.em	2008-07-10 17:33:23.000000000 +0200
     1.6 -+++ binutils-2.18.50.0.8/ld/emultempl/elf32.em	2008-07-13 23:19:29.000000000 +0200
     1.7 -@@ -1220,6 +1220,8 @@
     1.8 - 	      && command_line.rpath == NULL)
     1.9 - 	    {
    1.10 - 	      lib_path = (const char *) getenv ("LD_RUN_PATH");
    1.11 -+	      if ((lib_path) && (strlen (lib_path) == 0))
    1.12 -+		  lib_path = NULL;
    1.13 - 	      if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
    1.14 - 						      force))
    1.15 - 		break;
    1.16 -@@ -1405,6 +1407,8 @@
    1.17 -   rpath = command_line.rpath;
    1.18 -   if (rpath == NULL)
    1.19 -     rpath = (const char *) getenv ("LD_RUN_PATH");
    1.20 -+  if ((rpath) && (strlen (rpath) == 0))
    1.21 -+      rpath = NULL;
    1.22 -   if (! (bfd_elf_size_dynamic_sections
    1.23 - 	 (link_info.output_bfd, command_line.soname, rpath,
    1.24 - 	  command_line.filter_shlib,