mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 07:08:01 +08:00
2000-08-24 H.J. Lu <hjl@gnu.org>
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't check -rpath nor LD_RUN_PATH for cross link. * ld.texinfo: Document the change.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2000-08-25 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* 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 <hp@axis.com>
|
2000-08-24 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* NEWS: Mention support for CRIS.
|
* NEWS: Mention support for CRIS.
|
||||||
|
@ -620,7 +620,6 @@ gld${EMULATION_NAME}_after_open ()
|
|||||||
their use. See gld${EMULATION_NAME}_vercheck comment. */
|
their use. See gld${EMULATION_NAME}_vercheck comment. */
|
||||||
for (force = 0; force < 2; force++)
|
for (force = 0; force < 2; force++)
|
||||||
{
|
{
|
||||||
const char *lib_path;
|
|
||||||
size_t len;
|
size_t len;
|
||||||
search_dirs_type *search;
|
search_dirs_type *search;
|
||||||
EOF
|
EOF
|
||||||
@ -628,6 +627,7 @@ if [ "x${host}" = "x${target}" ] ; then
|
|||||||
case " ${EMULATION_LIBPATH} " in
|
case " ${EMULATION_LIBPATH} " in
|
||||||
*" ${EMULATION_NAME} "*)
|
*" ${EMULATION_NAME} "*)
|
||||||
cat >>e${EMULATION_NAME}.c <<EOF
|
cat >>e${EMULATION_NAME}.c <<EOF
|
||||||
|
const char *lib_path;
|
||||||
struct bfd_link_needed_list *rp;
|
struct bfd_link_needed_list *rp;
|
||||||
int found;
|
int found;
|
||||||
EOF
|
EOF
|
||||||
@ -639,6 +639,11 @@ cat >>e${EMULATION_NAME}.c <<EOF
|
|||||||
if (gld${EMULATION_NAME}_search_needed (command_line.rpath_link,
|
if (gld${EMULATION_NAME}_search_needed (command_line.rpath_link,
|
||||||
l->name, force))
|
l->name, force))
|
||||||
break;
|
break;
|
||||||
|
EOF
|
||||||
|
if [ "x${host}" = "x${target}" ] ; then
|
||||||
|
case " ${EMULATION_LIBPATH} " in
|
||||||
|
*" ${EMULATION_NAME} "*)
|
||||||
|
cat >>e${EMULATION_NAME}.c <<EOF
|
||||||
if (gld${EMULATION_NAME}_search_needed (command_line.rpath,
|
if (gld${EMULATION_NAME}_search_needed (command_line.rpath,
|
||||||
l->name, force))
|
l->name, force))
|
||||||
break;
|
break;
|
||||||
@ -650,11 +655,6 @@ cat >>e${EMULATION_NAME}.c <<EOF
|
|||||||
force))
|
force))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
EOF
|
|
||||||
if [ "x${host}" = "x${target}" ] ; then
|
|
||||||
case " ${EMULATION_LIBPATH} " in
|
|
||||||
*" ${EMULATION_NAME} "*)
|
|
||||||
cat >>e${EMULATION_NAME}.c <<EOF
|
|
||||||
lib_path = (const char *) getenv ("LD_LIBRARY_PATH");
|
lib_path = (const char *) getenv ("LD_LIBRARY_PATH");
|
||||||
if (gld${EMULATION_NAME}_search_needed (lib_path, l->name, force))
|
if (gld${EMULATION_NAME}_search_needed (lib_path, l->name, force))
|
||||||
break;
|
break;
|
||||||
|
@ -1089,11 +1089,11 @@ Any directories specified by @code{-rpath} options. The difference
|
|||||||
between @code{-rpath} and @code{-rpath-link} is that directories
|
between @code{-rpath} and @code{-rpath-link} is that directories
|
||||||
specified by @code{-rpath} options are included in the executable and
|
specified by @code{-rpath} options are included in the executable and
|
||||||
used at runtime, whereas the @code{-rpath-link} option is only effective
|
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
|
@item
|
||||||
On an ELF system, if the @code{-rpath} and @code{rpath-link} options
|
On an ELF system, if the @code{-rpath} and @code{rpath-link} options
|
||||||
were not used, search the contents of the environment variable
|
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
|
@item
|
||||||
On SunOS, if the @code{-rpath} option was not used, search any
|
On SunOS, if the @code{-rpath} option was not used, search any
|
||||||
directories specified using @code{-L} options.
|
directories specified using @code{-L} options.
|
||||||
|
Reference in New Issue
Block a user