Test program for handling DF_1_NOOPEN.
authordrepper <drepper>
Fri, 21 Jul 2000 04:36:08 +0000 (04:36 +0000)
committerdrepper <drepper>
Fri, 21 Jul 2000 04:36:08 +0000 (04:36 +0000)
elf/nodlopen.c [new file with mode: 0644]

diff --git a/elf/nodlopen.c b/elf/nodlopen.c
new file mode 100644 (file)
index 0000000..642bdb3
--- /dev/null
@@ -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;
+}