about summary refs log tree commit diff
path: root/elf/dl-close.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-06-21 11:23:25 -0400
committerUlrich Drepper <drepper@gmail.com>2011-06-21 11:23:25 -0400
commit75d39ff2124ae8cdee6f9b1788acf8be53b76a20 (patch)
tree5471dbe9e2ac68fd45810c7ecb5cc8cede17d9cb /elf/dl-close.c
parent42675c6ff0e95346de8a2cbc066e14e0d6a856e4 (diff)
downloadglibc-75d39ff2124ae8cdee6f9b1788acf8be53b76a20.tar.gz
glibc-75d39ff2124ae8cdee6f9b1788acf8be53b76a20.tar.xz
glibc-75d39ff2124ae8cdee6f9b1788acf8be53b76a20.zip
Add missing DL_CALL_FCT
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r--elf/dl-close.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 229e288ef6..6f8d9d2c80 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -123,12 +123,15 @@ _dl_close_worker (struct link_map *map)
 	{
 	  if (map->l_type == lt_loaded)
 	    dl_close_state = rerun;
-	  else if (map->l_type == lt_library)
+#if 1
+	  else if (map->l_type == lt_library && map->l_initfini != map->l_orig_initfini)
 	    {
 	      struct link_map **oldp = map->l_initfini;
 	      map->l_initfini = map->l_orig_initfini;
+ _dl_printf("aaa\n");
 	      _dl_scope_free (oldp);
 	    }
+#endif
 	}
 
       /* There are still references to this object.  Do nothing more.  */