From: Ulrich Drepper Date: Tue, 10 Mar 1998 12:23:02 +0000 (+0000) Subject: (dl_main): Load the preloaded objects dependencies. X-Git-Tag: cvs/before-sparc-2_0_x-branch~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c97ef2c618ab565bba29864128cdd9c1f65cf3ef;p=thirdparty%2Fglibc.git (dl_main): Load the preloaded objects dependencies. --- diff --git a/elf/rtld.c b/elf/rtld.c index c7bac88f024..cef7246875b 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -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);