aboutsummaryrefslogtreecommitdiff
path: root/dlfcn/dlinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'dlfcn/dlinfo.c')
-rw-r--r--dlfcn/dlinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dlfcn/dlinfo.c b/dlfcn/dlinfo.c
index 7e7f1c7..4e755ad 100644
--- a/dlfcn/dlinfo.c
+++ b/dlfcn/dlinfo.c
@@ -55,12 +55,15 @@ RTLD_SELF used in code not dynamically loaded"));
switch (args->request)
{
- case RTLD_DI_LMID:
case RTLD_DI_CONFIGADDR:
default:
GLRO(dl_signal_error) (0, NULL, NULL, N_("unsupported dlinfo request"));
break;
+ case RTLD_DI_LMID:
+ *(Lmid_t *) args->arg = l->l_ns;
+ break;
+
case RTLD_DI_LINKMAP:
*(struct link_map **) args->arg = l;
break;