aboutsummaryrefslogtreecommitdiff
path: root/elf/rtld.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index a025757e05..7189ca6b2b 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -58,6 +58,9 @@ int _dl_argc;
char **_dl_argv;
const char *_dl_rpath;
int _dl_verbose;
+const char *_dl_platform;
+size_t _dl_platformlen;
+struct r_search_path *_dl_search_paths;
/* Set nonzero during loading and initialization of executable and
libraries, cleared before the executable's entry point runs. This
@@ -526,6 +529,10 @@ 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. */