aboutsummaryrefslogtreecommitdiff
path: root/elf/unload6mod2.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/unload6mod2.c')
-rw-r--r--elf/unload6mod2.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/elf/unload6mod2.c b/elf/unload6mod2.c
deleted file mode 100644
index 980efa4b0e..0000000000
--- a/elf/unload6mod2.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <dlfcn.h>
-#include <stdio.h>
-#include <unistd.h>
-
-static void *h;
-
-static void __attribute__((constructor))
-mod2init (void)
-{
- h = dlopen ("unload6mod3.so", RTLD_LAZY);
- if (h == NULL)
- {
- puts ("dlopen unload6mod3.so failed");
- fflush (stdout);
- _exit (1);
- }
-}
-
-static void __attribute__((destructor))
-mod2fini (void)
-{
- dlclose (h);
-}