diff options
author | Jakub Jelinek <jakub@redhat.com> | 2004-10-14 12:33:58 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2004-10-14 12:33:58 +0000 |
commit | 01682b1f05d8db303b38757b920248650c110ddb (patch) | |
tree | cc31dec885eb5e8c29154a02c1ee96f0e0cb29fc /dlfcn | |
parent | 82496aab644f7acdce3f3a693f3c78723b175124 (diff) | |
download | glibc-01682b1f05d8db303b38757b920248650c110ddb.tar.gz glibc-01682b1f05d8db303b38757b920248650c110ddb.tar.xz glibc-01682b1f05d8db303b38757b920248650c110ddb.zip |
2.3.3-68 cvs/fedora-glibc-2_3_3-68
Diffstat (limited to 'dlfcn')
-rw-r--r-- | dlfcn/dlinfo.c | 12 |
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_("\ |