From 8699e7b1daa5d250b8bc69e1ecffae80170277e5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 21 Oct 2000 06:02:49 +0000 Subject: 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. --- elf/neededtest.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'elf/neededtest.c') 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 +#include +#include #include #include #include -#include -#include 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; } -- cgit v1.2.3