Handle RTLD_DI_LMID.
authordrepper <drepper>
Thu, 14 Oct 2004 01:48:22 +0000 (01:48 +0000)
committerdrepper <drepper>
Thu, 14 Oct 2004 01:48:22 +0000 (01:48 +0000)
dlfcn/dlinfo.c

index 7e7f1c7..4e755ad 100644 (file)
@@ -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;