Index: ld/emultempl/elf32.em =================================================================== --- ld/emultempl/elf32.em.orig 2010-10-29 14:10:36.000000000 +0200 +++ ld/emultempl/elf32.em 2011-01-10 17:42:31.000000000 +0100 @@ -1432,8 +1432,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)