1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch Sun Dec 21 20:07:47 2008 +0000
1.3 @@ -0,0 +1,26 @@
1.4 +Check LD_RUN_PATH length, copied from buildroot.
1.5 +
1.6 + binutils-2.18.50.0.6/ld/emultempl/elf32.em | 4 4 0 0 ++++
1.7 + 1 file changed, 4 insertions(+)
1.8 +
1.9 +diff -durN binutils-2.18.50.0.6.orig/ld/emultempl/elf32.em binutils-2.18.50.0.6/ld/emultempl/elf32.em
1.10 +--- binutils-2.18.50.0.6.orig/ld/emultempl/elf32.em 2008-04-03 18:54:25.000000000 +0200
1.11 ++++ binutils-2.18.50.0.6/ld/emultempl/elf32.em 2008-05-02 23:30:08.000000000 +0200
1.12 +@@ -1220,6 +1220,8 @@
1.13 + && command_line.rpath == NULL)
1.14 + {
1.15 + lib_path = (const char *) getenv ("LD_RUN_PATH");
1.16 ++ if ((lib_path) && (strlen (lib_path) == 0))
1.17 ++ lib_path = NULL;
1.18 + if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
1.19 + force))
1.20 + break;
1.21 +@@ -1405,6 +1407,8 @@
1.22 + rpath = command_line.rpath;
1.23 + if (rpath == NULL)
1.24 + rpath = (const char *) getenv ("LD_RUN_PATH");
1.25 ++ if ((rpath) && (strlen (rpath) == 0))
1.26 ++ rpath = NULL;
1.27 + if (! (bfd_elf_size_dynamic_sections
1.28 + (link_info.output_bfd, command_line.soname, rpath,
1.29 + command_line.filter_shlib,