diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index f4f7ad6b4e..7b0f86031a 100644 --- ld/emultempl/elf32.em +++ ld/emultempl/elf32.em @@ -1638,8 +1638,35 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" != xgld"$EMULATION_NAME"_before_allocation; else ELF_INTERPRETER_SET_DEFAULT= 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)