From: H.J. Lu Date: Fri, 25 Aug 2000 20:24:11 +0000 (+0000) Subject: 2000-08-24 H.J. Lu X-Git-Tag: newlib-1_9_0~1098 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dcb0bd0eef10207754cb0fa64af3f2b965a1a589;p=platform%2Fupstream%2Fbinutils.git 2000-08-24 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't check -rpath nor LD_RUN_PATH for cross link. * ld.texinfo: Document the change. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 1a95b68..89e1c34 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2000-08-25 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't + check -rpath nor LD_RUN_PATH for cross link. + * ld.texinfo: Document the change. + 2000-08-24 Hans-Peter Nilsson * NEWS: Mention support for CRIS. diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 9698e9f..b6e9856 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -620,7 +620,6 @@ gld${EMULATION_NAME}_after_open () their use. See gld${EMULATION_NAME}_vercheck comment. */ for (force = 0; force < 2; force++) { - const char *lib_path; size_t len; search_dirs_type *search; EOF @@ -628,6 +627,7 @@ if [ "x${host}" = "x${target}" ] ; then case " ${EMULATION_LIBPATH} " in *" ${EMULATION_NAME} "*) cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <name, force)) break; +EOF +if [ "x${host}" = "x${target}" ] ; then + case " ${EMULATION_LIBPATH} " in + *" ${EMULATION_NAME} "*) +cat >>e${EMULATION_NAME}.c <name, force)) break; @@ -650,11 +655,6 @@ cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <name, force)) break; diff --git a/ld/ld.texinfo b/ld/ld.texinfo index e3ecaa4..5f8e054 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -1089,11 +1089,11 @@ Any directories specified by @code{-rpath} options. The difference between @code{-rpath} and @code{-rpath-link} is that directories specified by @code{-rpath} options are included in the executable and used at runtime, whereas the @code{-rpath-link} option is only effective -at link time. +at link time. It is for the native linker only. @item On an ELF system, if the @code{-rpath} and @code{rpath-link} options were not used, search the contents of the environment variable -@code{LD_RUN_PATH}. +@code{LD_RUN_PATH}. It is for the native linker only. @item On SunOS, if the @code{-rpath} option was not used, search any directories specified using @code{-L} options.