From 8cf454ee6d37315ca457fdedb5087e4d1bef0b0f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 2 Mar 1998 13:32:54 +0000 Subject: [PATCH] (_dl_open): Update _dl_global_scope_end when setting _dl_global_scope for RTLD_GLOBAL. --- elf/dl-open.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.47.2