Index: ld/emultempl/elf32.em =================================================================== --- ld/emultempl/elf32.em.orig 2013-03-25 09:06:23.000000000 +0100 +++ ld/emultempl/elf32.em 2013-03-28 13:48:32.031001794 +0100 @@ -1440,8 +1440,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)