summaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index e0d35216b6..aa40d42097 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -482,6 +482,10 @@ of this helper program; chances are you did not intend to run this program.\n",
preloads = NULL;
npreloads = 0;
+ /* Initialize the data structures for the search paths for shared
+ objects. */
+ _dl_init_paths ();
+
preloadlist = getenv ("LD_PRELOAD");
if (preloadlist)
{
@@ -595,10 +599,6 @@ of this helper program; chances are you did not intend to run this program.\n",
assert (i == npreloads);
}
- /* Initialize the data structures for the search paths for shared
- objects. */
- _dl_init_paths ();
-
/* Load all the libraries specified by DT_NEEDED entries. If LD_PRELOAD
specified some libraries to load, these are inserted before the actual
dependencies in the executable's searchlist for symbol resolution. */