]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_open): Update _dl_global_scope_end when setting _dl_global_scope
authorUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:32:54 +0000 (13:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 2 Mar 1998 13:32:54 +0000 (13:32 +0000)
for RTLD_GLOBAL.

elf/dl-open.c

index 86b9c2267362df229bfb693b904de8f87ce1e5ce..87cf4de967f26d2d92fb8131a7e8d4938ac9571c 100644 (file)
@@ -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
        {