diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-10-21 02:07:22 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-10-21 02:07:22 +0000 |
commit | f6de2239e2cb1af87b36dbd8712bd27f42ae7d54 (patch) | |
tree | 7e0a5ad8333b9f73756ee4af90e1dcd30fd430f0 /elf/dl-close.c | |
parent | e6d18111ad070915de6dca807b1defe11a23ed56 (diff) | |
download | glibc-f6de2239e2cb1af87b36dbd8712bd27f42ae7d54.zip glibc-f6de2239e2cb1af87b36dbd8712bd27f42ae7d54.tar.gz glibc-f6de2239e2cb1af87b36dbd8712bd27f42ae7d54.tar.bz2 |
Update.
* elf/Makefile: Add rules to build and run unload2.
* elf/unload2.c: New file.
* elf/unload2mod.c: New file.
* elf/unload2dep.c: New file.
* intl/libintl.h (ngettext macro): Add missing parameter.
(dngettext macro): Likewise.
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r-- | elf/dl-close.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index 03c38d9..8426e73 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -61,9 +61,6 @@ _dl_close (void *_map) /* Acquire the lock. */ __libc_lock_lock (_dl_load_lock); - list = map->l_searchlist.r_list; - nsearchlist = map->l_searchlist.r_nlist; - /* Decrement the reference count. */ if (map->l_opencount > 1 || map->l_type != lt_loaded) { @@ -81,17 +78,14 @@ _dl_close (void *_map) "\n", NULL); } - /* Even if we don't unload it now, we still have to decrement - `l_opencount' of the dependencies. Otherwise, they may not - get unloaded later. */ - for (i = 0; i < nsearchlist; ++i) - if (! (list[i]->l_flags_1 & DF_1_NODELETE)) - --list[i]->l_opencount; - + --map->l_opencount; __libc_lock_unlock (_dl_load_lock); return; } + list = map->l_searchlist.r_list; + nsearchlist = map->l_searchlist.r_nlist; + rellist = map->l_reldeps; nrellist = map->l_reldepsact; |