aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-open.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-21 14:17:43 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-21 14:17:43 +0000
commit50b65db1ee9a87be6ead950e7cffa4c223e689fd (patch)
tree28ecfe4141d27f096b12cd3174bbbd5c0b9c3d79 /elf/dl-open.c
parent1d28e93cabf235de32a594d7b770551a34be0e75 (diff)
downloadglibc-50b65db1ee9a87be6ead950e7cffa4c223e689fd.tar
glibc-50b65db1ee9a87be6ead950e7cffa4c223e689fd.tar.gz
glibc-50b65db1ee9a87be6ead950e7cffa4c223e689fd.tar.bz2
glibc-50b65db1ee9a87be6ead950e7cffa4c223e689fd.zip
Update.
1999-01-21 Ulrich Drepper <drepper@cygnus.com> * elf/dl-close.c: Rewrite the way adding to the global scope works to handle error cases better than the last change. The l_global flag is now only set when the object is actually counted in the global scope list. * elf/dl-deps.c: Likewise. * elf/dl-open.c: Likewise.
Diffstat (limited to 'elf/dl-open.c')
-rw-r--r--elf/dl-open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/dl-open.c b/elf/dl-open.c
index 3db2b0e9f7..2b3352b674 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -144,9 +144,9 @@ dl_open_worker (void *a)
(*(void (*) (int, char **, char **)) init) (__libc_argc, __libc_argv,
__environ);
- if (new->l_global)
- /* Now we can make the new map available in the global scope. */
- _dl_main_searchlist->r_nlist += global_add;
+ /* Now we can make the new map available in the global scope. */
+ while (global_add-- > 0)
+ _dl_main_searchlist->r_list[_dl_main_searchlist->r_nlist++]->l_global = 1;
if (_dl_sysdep_start == NULL)
/* We must be the static _dl_open in libc.a. A static program that