From c1446dbab7c44c23025d02d045c826ecb4c3de37 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Feb 2006 01:05:10 +0000 Subject: [PATCH] 2006-02-08 H.J. Lu PR ld/2290 * NEWS: Updated for the Linux linker search order change. * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call gld${EMULATION_NAME}_check_ld_so_conf before checking default search directories for DT_NEEDED entries. --- ld/ChangeLog | 9 +++++++++ ld/NEWS | 3 +++ ld/emultempl/elf32.em | 23 ++++++++++++----------- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 2cb4fd08bcf..b525e77cdb6 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,12 @@ +2006-02-08 H.J. Lu + + PR ld/2290 + * NEWS: Updated for the Linux linker search order change. + + * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Call + gld${EMULATION_NAME}_check_ld_so_conf before checking default + search directories for DT_NEEDED entries. + 2006-02-07 Paul Brook * emultempl/armelf.em: Include elf/arm.h. diff --git a/ld/NEWS b/ld/NEWS index 23ccc9385de..7ec8921d998 100644 --- a/ld/NEWS +++ b/ld/NEWS @@ -1,5 +1,8 @@ -*- text -*- +* Modify the Linux linker to seach /etc/ld.so.conf first before + checking default search directories for DT_NEEDED entries. + * PE-COFF: Forward exports from DLL's can now be specified in .def files passed directly to ld. diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 703248a5ce4..048917f3b5a 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -919,6 +919,18 @@ cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <name, force)) + break; + +EOF + ;; + esac +fi cat >>e${EMULATION_NAME}.c <name); for (search = search_head; search != NULL; search = search->next) @@ -937,17 +949,6 @@ cat >>e${EMULATION_NAME}.c <>e${EMULATION_NAME}.c <name, force)) - break; -EOF - # Linux - ;; - esac -fi cat >>e${EMULATION_NAME}.c <