diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-10-14 09:24:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-10-14 09:24:14 +0000 |
commit | 7cb92a99fafb8f9f43ba97d4790eff49c206a8e2 (patch) | |
tree | a7fca1899668ad72da4aea36b0e693d35566071e | |
parent | c701ab9f0e231592427e0602431d4156a21d4afd (diff) | |
download | glibc-7cb92a99fafb8f9f43ba97d4790eff49c206a8e2.zip glibc-7cb92a99fafb8f9f43ba97d4790eff49c206a8e2.tar.gz glibc-7cb92a99fafb8f9f43ba97d4790eff49c206a8e2.tar.bz2 |
Update.
2004-10-14 Jakub Jelinek <jakub@redhat.com>
* elf/rtld.c (_dl_start): Fix one last dl_loaded.
* elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of
label when it is not needed.
* elf/dl-close.c (_dl_close): Typo: & -> &&.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | elf/dl-close.c | 2 | ||||
-rw-r--r-- | elf/dl-load.c | 2 | ||||
-rw-r--r-- | elf/rtld.c | 2 |
4 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,10 @@ +2004-10-14 Jakub Jelinek <jakub@redhat.com> + + * elf/rtld.c (_dl_start): Fix one last dl_loaded. + * elf/dl-load.c (_dl_map_object_from_fd): Avoid definition of + label when it is not needed. + * elf/dl-close.c (_dl_close): Typo: & -> &&. + 2004-10-12 Jakub Jelinek <jakub@redhat.com> * sysdeps/generic/segfault.c: Include alloca.h and stdint.h. diff --git a/elf/dl-close.c b/elf/dl-close.c index 4f015fd..c823b17 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -237,7 +237,7 @@ _dl_close (void *_map) struct link_map *rl = depmap->l_initfini[k]; if (rl->l_idx < nopencount - & list[rl->l_idx] == rl) + && list[rl->l_idx] == rl) { assert (new_opencount[rl->l_idx] > 0); if (--new_opencount[rl->l_idx] == 0) diff --git a/elf/dl-load.c b/elf/dl-load.c index 83d46f0..27f6e3f 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -909,7 +909,9 @@ _dl_map_object_from_fd (const char *name, int fd, struct filebuf *fbp, l = _dl_new_object (realname, name, l_type, loader, mode, nsid); if (__builtin_expect (l == NULL, 0)) { +#ifdef SHARED fail_new: +#endif errstring = N_("cannot create shared object descriptor"); goto call_lose_errno; } @@ -537,7 +537,7 @@ _dl_start (void *arg) # define ELF_MACHINE_START_ADDRESS(map, start) (start) #endif - return ELF_MACHINE_START_ADDRESS (GL(dl_loaded), entry); + return ELF_MACHINE_START_ADDRESS (GL(dl_ns)[LM_ID_BASE]._ns_loaded, entry); } } |