summaryrefslogtreecommitdiff
path: root/elf/neededtest.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-10-21 06:02:49 +0000
committerUlrich Drepper <drepper@redhat.com>2000-10-21 06:02:49 +0000
commit8699e7b1daa5d250b8bc69e1ecffae80170277e5 (patch)
tree6ee2841f9875e4bf2d1f73f1539b0ad3bd9b5406 /elf/neededtest.c
parentf6de2239e2cb1af87b36dbd8712bd27f42ae7d54 (diff)
Update.
* elf/dl-close.c: Decrement opencount for all dependencies which can be removed even if the object is not yet unloaded. * elf/dl-deps.c (_dl_map_object_deps): If dependency is already in the list decrement opencount of all dependencies. * elf/dl-load.c (_dl_map_object_from_fd): Increment object of object and all dependencies. (_dl_map_object): Likewise. * elf/dl-lookup.c (add_dependency): Likewise. * elf/loadtest.c: Add debug when with more output.
Diffstat (limited to 'elf/neededtest.c')
-rw-r--r--elf/neededtest.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/elf/neededtest.c b/elf/neededtest.c
index 053d5528aa..98f69a3185 100644
--- a/elf/neededtest.c
+++ b/elf/neededtest.c
@@ -1,8 +1,9 @@
+#include <dlfcn.h>
+#include <libintl.h>
+#include <link.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <dlfcn.h>
-#include <link.h>
static int
check_loaded_objects (const char **loaded)
@@ -26,7 +27,7 @@ check_loaded_objects (const char **loaded)
for (lm = _r_debug.r_map; lm; lm = lm->l_next)
{
if (lm->l_name && lm->l_name[0])
- printf(" %s\n", lm->l_name);
+ printf(" %s, count = %d\n", lm->l_name, (int) lm->l_opencount);
if (lm->l_type == lt_loaded && lm->l_name)
{
int match = 0;
@@ -99,6 +100,6 @@ main (void)
loaded[0] = NULL;
errors += check_loaded_objects (loaded);
if (errors != 0)
- printf ("%d errorss found\n", errors);
+ printf ("%d errors found\n", errors);
return errors;
}