aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--elf/dl-object.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c7d9257b65..6848767d0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1998-09-08 Ulrich Drepper <drepper@cygnus.com>
+ * elf/dl-object.c (_dl_new_object): Store map address in
+ _dl_loaded if _dl_loaded is NULL.
+
* sysdeps/generic/setrlimit64.c: Remove stub warning.
1998-09-07 Ulrich Drepper <drepper@cygnus.com>
diff --git a/elf/dl-object.c b/elf/dl-object.c
index d9dd692be2..297f30ecee 100644
--- a/elf/dl-object.c
+++ b/elf/dl-object.c
@@ -64,6 +64,8 @@ _dl_new_object (char *realname, const char *libname, int type,
/* Add the global scope. */
new->l_scope[idx++] = &_dl_loaded->l_searchlist;
}
+ else
+ _dl_loaded = new;
/* This is our local scope. */
if (loader != NULL)
{