From: H.J. Lu Date: Wed, 23 Aug 2000 23:03:00 +0000 (+0000) Subject: 2000-08-23 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dd8c765d3c328fb2b86fcf2afa9efaf9a235470;p=binutils-gdb.git 2000-08-23 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get the current runpath list from bfd_elf_get_runpath_list () before search. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 0335d58d0d4..245b262d188 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2000-08-23 H.J. Lu + + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get + the current runpath list from bfd_elf_get_runpath_list () + before search. + 2000-08-22 H.J. Lu * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index dee6e8c036b..9698e9f8130 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -570,34 +570,11 @@ static void gld${EMULATION_NAME}_after_open () { struct bfd_link_needed_list *needed, *l; -EOF -if [ "x${host}" = "x${target}" ] ; then - case " ${EMULATION_LIBPATH} " in - *" ${EMULATION_NAME} "*) -cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <next) @@ -658,6 +623,18 @@ cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <name, force)) @@ -683,7 +660,8 @@ cat >>e${EMULATION_NAME}.c <next) + rp = bfd_elf_get_runpath_list (output_bfd, &link_info); + for (; !found && rp != NULL; rp = rp->next) { found = (rp->by == l->by && gld${EMULATION_NAME}_search_needed (rp->name,