From c97ef2c618ab565bba29864128cdd9c1f65cf3ef Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 10 Mar 1998 12:23:02 +0000 Subject: [PATCH] (dl_main): Load the preloaded objects dependencies. --- elf/rtld.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- 2.47.2