From: Ulrich Drepper Date: Mon, 2 Mar 1998 13:32:54 +0000 (+0000) Subject: (_dl_open): Update _dl_global_scope_end when setting _dl_global_scope X-Git-Tag: cvs/before-sparc-2_0_x-branch~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cf454ee6d37315ca457fdedb5087e4d1bef0b0f;p=thirdparty%2Fglibc.git (_dl_open): Update _dl_global_scope_end when setting _dl_global_scope for RTLD_GLOBAL. --- diff --git a/elf/dl-open.c b/elf/dl-open.c index 86b9c226736..87cf4de967f 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -90,7 +90,7 @@ _dl_open (const char *file, int mode) l = l->l_prev; } - new->l_global = (mode & RTLD_GLOBAL); + new->l_global = (mode & RTLD_GLOBAL) ? 1 : 0; if (new->l_global) { /* The symbols of the new object and its dependencies are to be @@ -113,6 +113,7 @@ _dl_open (const char *file, int mode) _dl_global_scope[3] = new; _dl_global_scope[4] = NULL; _dl_global_scope[5] = NULL; + _dl_global_scope_end = &_dl_global_scope [4]; } else {