From 07a3d63e524f13dd09e14adb0ac2623f6600401d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 15 Aug 2000 07:06:23 +0000 Subject: Update. 2000-08-15 Ulrich Drepper * elf/multiload.c: Add mtrace call. Call dlclose for all handles and free wd. * elf/dl-deps.c (_dl_map_object_deps): Don't allocate needed list if there is already one. * elf/dl-close.c: Pretty print. --- elf/multiload.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'elf/multiload.c') diff --git a/elf/multiload.c b/elf/multiload.c index 724c1ed562..3727d97f6a 100644 --- a/elf/multiload.c +++ b/elf/multiload.c @@ -1,5 +1,6 @@ #include #include +#include #include #include #include @@ -16,6 +17,8 @@ main (void) char *base; char *buf; + mtrace (); + /* Change to the binary directory. */ if (chdir (OBJDIR) != 0) { @@ -68,6 +71,29 @@ main (void) exit (EXIT_FAILURE); } + if (dlclose (a) != 0) + { + puts ("closing `a' failed"); + exit (EXIT_FAILURE); + } + if (dlclose (b) != 0) + { + puts ("closing `a' failed"); + exit (EXIT_FAILURE); + } + if (dlclose (c) != 0) + { + puts ("closing `a' failed"); + exit (EXIT_FAILURE); + } + if (dlclose (d) != 0) + { + puts ("closing `a' failed"); + exit (EXIT_FAILURE); + } + + free (wd); + return 0; } -- cgit v1.2.3