1 Original patch from: ../crosstool-NG/ct-ng.trunk/patches/binutils/2.18.50.0.4/120-check-ldrunpath-length.patch
3 -= BEGIN original header =-
4 Check LD_RUN_PATH length, copied from buildroot.
6 binutils-2.18.50.0.6/ld/emultempl/elf32.em | 4 4 0 0 ++++
7 1 file changed, 4 insertions(+)
9 -= END original header =-
11 diff -durN binutils-2.18.50.0.4.orig/ld/emultempl/elf32.em binutils-2.18.50.0.4/ld/emultempl/elf32.em
12 --- binutils-2.18.50.0.4.orig/ld/emultempl/elf32.em 2008-02-08 17:44:55.000000000 +0100
13 +++ binutils-2.18.50.0.4/ld/emultempl/elf32.em 2009-03-07 12:17:31.000000000 +0100
15 && command_line.rpath == NULL)
17 lib_path = (const char *) getenv ("LD_RUN_PATH");
18 + if ((lib_path) && (strlen (lib_path) == 0))
20 if (gld${EMULATION_NAME}_search_needed (lib_path, &n,
24 rpath = command_line.rpath;
26 rpath = (const char *) getenv ("LD_RUN_PATH");
27 + if ((rpath) && (strlen (rpath) == 0))
29 if (! (bfd_elf_size_dynamic_sections
30 (output_bfd, command_line.soname, rpath,
31 command_line.filter_shlib,