This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]