(_dl_map_object): Don't test l_opencount when looking for name matches.
authordrepper <drepper>
Sat, 17 Mar 2001 00:00:03 +0000 (00:00 +0000)
committerdrepper <drepper>
Sat, 17 Mar 2001 00:00:03 +0000 (00:00 +0000)
elf/dl-load.c

index 0a5603f..873a0ba 100644 (file)
@@ -1514,9 +1514,7 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
       /* If the requested name matches the soname of a loaded object,
         use that object.  Elide this check for names that have not
         yet been opened.  */
-      /* XXX Is this test still correct after the reference counter
-        handling rewrite?  */
-      if (l->l_opencount == 0)
+      if (l->l_faked == 0)
        continue;
       if (!_dl_name_match_p (name, l))
        {