Index: ld/emultempl/elf32.em =================================================================== --- ld/emultempl/elf32.em.orig 2014-10-14 17:18:40.000000000 +0200 +++ ld/emultempl/elf32.em 2014-10-14 17:20:23.000000000 +0200 @@ -1357,8 +1357,38 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" != else ELF_INTERPRETER_SET_DEFAULT= fi + + libpath_nl= + for path in $NATIVE_LIB_DIRS; do + libpath_nl="$libpath_nl\n$path" + done fragment < rpath) + cw[-1] = 0; + + *cw = 0; + } + else + { + while (*cr && *cr != ':') + cr++; + if (*cr == ':') + cr++; + } + } + if (*rpath == '\0') + { + free (rpath); + rpath = NULL; + } + } + } for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next) if (bfd_get_flavour (abfd) == bfd_target_elf_flavour)