PATCH: Optimize for dlopen
H . J . Lu
hjl@lucon.org
Wed May 29 03:09:00 GMT 2002
I don't think we need to add objects which are not dlopened on the
dependency list of a dlopened object since they are in the global
scope.
H.J.
---
2002-05-28 H.J. Lu <hjl@gnu.org>
* elf/dl-deps.c (_dl_map_object_deps): Don't add objects which
are not dlopened on the dependency list of a dlopened object.
--- elf/dl-deps.c.load Tue May 21 18:55:03 2002
+++ elf/dl-deps.c Tue May 28 22:56:59 2002
@@ -254,6 +254,11 @@ _dl_map_object_deps (struct link_map *ma
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. */
More information about the Libc-alpha
mailing list