(_dl_map_object_deps): Don't add objects which are not dlopened on the
authordrepper <drepper>
Sun, 30 Jun 2002 08:24:11 +0000 (08:24 +0000)
committerdrepper <drepper>
Sun, 30 Jun 2002 08:24:11 +0000 (08:24 +0000)
dependency list of a dlopened object.

elf/dl-deps.c

index 9fd2dd2..7842013 100644 (file)
@@ -254,6 +254,10 @@ _dl_map_object_deps (struct link_map *map,
                else
                  dep = args.aux;
 
+               /* Skip those are not dlopened if we are dlopened.  */
+               if (map->l_type == lt_loaded && dep->l_type != lt_loaded)
+                 continue;
+
                if (! dep->l_reserved)
                  {
                    /* Allocate new entry.  */