diff options
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r-- | elf/dl-close.c | 5 |
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. */ |