diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-08-27 20:42:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-08-27 20:42:04 +0000 |
commit | 5f62394167f5df4565e6e07e1e16c56021626e50 (patch) | |
tree | 2d21615bf816ac7cc3b9cdf9b90a1e68b43a7680 /elf/dl-load.c | |
parent | f787edde1dcd0f35feff9c8fd6384bd564558180 (diff) | |
download | glibc-5f62394167f5df4565e6e07e1e16c56021626e50.tar.gz glibc-5f62394167f5df4565e6e07e1e16c56021626e50.tar.xz glibc-5f62394167f5df4565e6e07e1e16c56021626e50.zip |
Update.
Call _dl_new_object with extra argument. Call _dl_new_object with extra argument. but the main one if new argument is nonzero. * elf/ldsodefs.h: Adjust for _dl_new_object change. (dl_main): Call _dl_new_object with extra argument.
Diffstat (limited to 'elf/dl-load.c')
-rw-r--r-- | elf/dl-load.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/elf/dl-load.c b/elf/dl-load.c index 8e6a8537a3..81c1d8ba2e 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -739,7 +739,7 @@ _dl_map_object_from_fd (char *name, int fd, char *realname, #endif /* Enter the new object in the list of loaded objects. */ - l = _dl_new_object (realname, name, l_type); + l = _dl_new_object (realname, name, l_type, loader != NULL); if (! l) lose (ENOMEM, "cannot create shared object descriptor"); l->l_opencount = 1; @@ -1290,7 +1290,8 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded, /* Enter the new object in the list of loaded objects. */ if ((name_copy = local_strdup (name)) == NULL - || (l = _dl_new_object (name_copy, name, type)) == NULL) + || (l = _dl_new_object (name_copy, name, type, + loader != NULL)) == NULL) _dl_signal_error (ENOMEM, name, "cannot create shared object descriptor"); /* We use an opencount of 0 as a sign for the faked entry. */ |