about summary refs log tree commit diff
path: root/dlfcn
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-10-14 12:33:58 +0000
committerJakub Jelinek <jakub@redhat.com>2004-10-14 12:33:58 +0000
commit01682b1f05d8db303b38757b920248650c110ddb (patch)
treecc31dec885eb5e8c29154a02c1ee96f0e0cb29fc /dlfcn
parent82496aab644f7acdce3f3a693f3c78723b175124 (diff)
downloadglibc-01682b1f05d8db303b38757b920248650c110ddb.tar.gz
glibc-01682b1f05d8db303b38757b920248650c110ddb.tar.xz
glibc-01682b1f05d8db303b38757b920248650c110ddb.zip
Diffstat (limited to 'dlfcn')
-rw-r--r--dlfcn/dlinfo.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/dlfcn/dlinfo.c b/dlfcn/dlinfo.c
index 4e755ad044..d54a13259a 100644
--- a/dlfcn/dlinfo.c
+++ b/dlfcn/dlinfo.c
@@ -39,13 +39,15 @@ dlinfo_doit (void *argsblock)
 #if 0
   if (args->handle == RTLD_SELF)
     {
+      Lmid_t nsid;
 
       /* Find the highest-addressed object that CALLER is not below.  */
-      for (l = GL(dl_loaded); l != NULL; l = l->l_next)
-	if (caller >= l->l_map_start && caller < l->l_map_end)
-	  /* There must be exactly one DSO for the range of the virtual
-	     memory.  Otherwise something is really broken.  */
-	  break;
+      for (nsid = 0; nsid < DL_NNS; ++nsid)
+	for (l = GL(dl_ns)[nsid]._ns_loaded; l != NULL; l = l->l_next)
+	  if (caller >= l->l_map_start && caller < l->l_map_end)
+	    /* There must be exactly one DSO for the range of the virtual
+	       memory.  Otherwise something is really broken.  */
+	    break;
 
       if (l == NULL)
 	GLRO(dl_signal_error) (0, NULL, NULL, N_("\