diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em index 42c552b36e..dd0a6b1e60 100644 --- a/ld/emultempl/elf.em +++ b/ld/emultempl/elf.em @@ -135,6 +135,8 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" != xgld"$EMULATION_NAME"_before_allocation; if test x"${ELF_INTERPRETER_NAME}" = x; then ELF_INTERPRETER_NAME=NULL fi + + libpath_nl=`echo ${NATIVE_LIB_DIRS// /\\\n}` 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)