]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(dl_main): Load the preloaded objects dependencies.
authorUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 1998 12:23:02 +0000 (12:23 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 10 Mar 1998 12:23:02 +0000 (12:23 +0000)
elf/rtld.c

index c7bac88f02416c9cc008e32ba1c604f129ec5f94..cef7246875b0457ae574837ffec182b53bee3cec 100644 (file)
@@ -467,6 +467,14 @@ of this helper program; chances are you did not intend to run this program.\n",
      dependencies in the executable's searchlist for symbol resolution.  */
   _dl_map_object_deps (l, preloads, npreloads, mode == trace);
 
+  {
+    /* We should also load the preloaded objects dependencies. They
+       may call dlsym (RTLD_NEXT, ...).  */
+    unsigned int i;
+    for (i = 0; i < npreloads; i++)
+      _dl_map_object_deps (preloads[i], NULL, 0, mode == trace);
+  }
+
 #ifndef MAP_ANON
   /* We are done mapping things, so close the zero-fill descriptor.  */
   __close (_dl_zerofd);