This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Optimize for dlopen
- From: "H . J . Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Tue, 28 May 2002 23:05:56 -0700
- Subject: PATCH: Optimize for dlopen
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. */