about summary refs log tree commit diff
path: root/elf/nodlopen.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-21 04:42:21 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-21 04:42:21 +0000
commit2cb8cefbd42def9331fde5d8101b3f208440b60c (patch)
treee385f396a415ad549dc5f425a42b439ef079c71c /elf/nodlopen.c
parent2f54c82dacba646139a773ab43fc2cdb47ee1f5b (diff)
downloadglibc-2cb8cefbd42def9331fde5d8101b3f208440b60c.tar.gz
glibc-2cb8cefbd42def9331fde5d8101b3f208440b60c.tar.xz
glibc-2cb8cefbd42def9331fde5d8101b3f208440b60c.zip
Update.
	* elf/Makefile: Add no modules for nodelete test.
	* elf/nodelmod3.c: New file.
	* elf/nodelmod4.c: New file.
	* elf/nodelete.c: Also test case where dependency of dlopen() object
	is marked nodelete.

	* elf/nodlopen.c: New file.
	* elf/nodlopenmod.c: New file.
Diffstat (limited to 'elf/nodlopen.c')
-rw-r--r--elf/nodlopen.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/elf/nodlopen.c b/elf/nodlopen.c
new file mode 100644
index 0000000000..642bdb3011
--- /dev/null
+++ b/elf/nodlopen.c
@@ -0,0 +1,15 @@
+#include <dlfcn.h>
+#include <stdio.h>
+
+int
+main (void)
+{
+  if (dlopen ("nodlopenmod.so", RTLD_LAZY) != NULL)
+    {
+      puts ("opening \"nodlopenmod.so\" succeeded, FAIL");
+      return 1;
+    }
+
+  puts ("opening \"nodlopenmod.so\" failed, OK");
+  return 0;
+}