about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-03-19 09:10:45 +0000
committerUlrich Drepper <drepper@redhat.com>2005-03-19 09:10:45 +0000
commitf7e39466cac0c631b1b7e73e1d76e3e280719947 (patch)
treebf0ab42d38ee84022342f205503f4e81b0341efc
parent3d786f1969b1000f8dd7aa96e712f0b9134b3349 (diff)
downloadglibc-f7e39466cac0c631b1b7e73e1d76e3e280719947.tar.gz
glibc-f7e39466cac0c631b1b7e73e1d76e3e280719947.tar.xz
glibc-f7e39466cac0c631b1b7e73e1d76e3e280719947.zip
* elf/dl-lookup.c (add_dependency): Always search l_initfini if
	the list exists.
-rw-r--r--ChangeLog3
-rw-r--r--elf/dl-lookup.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2b32a8e40c..a20c174ad2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-03-19  Ulrich Drepper  <drepper@redhat.com>
 
+	* elf/dl-lookup.c (add_dependency): Always search l_initfini if
+	the list exists.
+
 	* elf/Makefile: Add rules to build and run order2.
 	* elf/order2.c: New file.
 	* elf/order2mod1.c: New file.
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index b3695aeb99..130453ca24 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -108,7 +108,7 @@ add_dependency (struct link_map *undef_map, struct link_map *map)
 
   /* Determine whether UNDEF_MAP already has a reference to MAP.  First
      look in the normal dependencies.  */
-  if (undef_map->l_searchlist.r_list != NULL)
+  if (undef_map->l_initfini != NULL)
     {
       list = undef_map->l_initfini;