aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-support.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-16 06:30:08 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-16 06:30:08 +0000
commit1ebba33ece5a998d3d79fa14adca3ae7985cbff5 (patch)
treec5e37a6ed7614a055548537d58d8ab58b94b3f9f /elf/dl-support.c
parent74e61bb4e5fe0691d497f04cf71fbd4717da6db2 (diff)
downloadglibc-1ebba33ece5a998d3d79fa14adca3ae7985cbff5.tar
glibc-1ebba33ece5a998d3d79fa14adca3ae7985cbff5.tar.gz
glibc-1ebba33ece5a998d3d79fa14adca3ae7985cbff5.tar.bz2
glibc-1ebba33ece5a998d3d79fa14adca3ae7985cbff5.zip
Update.
2000-08-15 Ulrich Drepper <drepper@redhat.com> * sysdeps/generic/ldsodefs.h: Declare _nl_nloaded. * elf/Versions [ld] (GLIBC_2.2): Add _nl_nloaded. * elf/dl-support.c: Define _nl_nloaded. * elf/rtld.c: Likewise. Increment _nl_nloaded for rtld itself. * elf/dl-object.c (_dl_new_object): Increment _nl_nloaded after adding object to global list. * elf/dl-close.c (_dl_close): Decrement _nl_nloaded after removing from _dl_loaded list. * elf/dl-load.c (_dl_map_object_from_fd): Likewise. * elf/dl-fini.c (_dl_fini): Use _nl_nloaded instead of computing the number here. * sysdeps/i386/fpu/fedisblxcpt.c (fedisableexcept): Mask, not unmask, exceptions. * sysdeps/i386/fpu/feenablxcpt.c (feenableexcept): Unmask, not mask, exceptions. Reported by Harvey J. Stein <hjstein@bfr.co.il>.
Diffstat (limited to 'elf/dl-support.c')
-rw-r--r--elf/dl-support.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/dl-support.c b/elf/dl-support.c
index ec0bbb22bb..d2c8738043 100644
--- a/elf/dl-support.c
+++ b/elf/dl-support.c
@@ -72,6 +72,8 @@ int _dl_bind_not;
/* Initially empty list of loaded objects. */
struct link_map *_dl_loaded;
+/* Number of object in the _dl_loaded list. */
+unsigned int _dl_nloaded;
/* Fake scope. In dynamically linked binaries this is the scope of the
main application but here we don't have something like this. So