about summary refs log tree commit diff
path: root/elf/globalmod1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-03-04 19:51:54 +0000
committerUlrich Drepper <drepper@redhat.com>2001-03-04 19:51:54 +0000
commit273a3cfb9998b1370657a95f717019c70ec8eb06 (patch)
treead370b0b0e31189cb461520e85a846b7760e11e9 /elf/globalmod1.c
parentbd575f16b497e22fb421f385b6919fcb54af12e4 (diff)
downloadglibc-273a3cfb9998b1370657a95f717019c70ec8eb06.tar.gz
glibc-273a3cfb9998b1370657a95f717019c70ec8eb06.tar.xz
glibc-273a3cfb9998b1370657a95f717019c70ec8eb06.zip
Update.
	* elf/global.c: New file.
	* elf/globalmod1.c: New file.
	* elf/Makefile: Add rules to build and run global.
Diffstat (limited to 'elf/globalmod1.c')
-rw-r--r--elf/globalmod1.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/elf/globalmod1.c b/elf/globalmod1.c
new file mode 100644
index 0000000000..778a558746
--- /dev/null
+++ b/elf/globalmod1.c
@@ -0,0 +1,15 @@
+#include <dlfcn.h>
+#include <stdio.h>
+
+int
+test (void)
+{
+  (void) dlopen ("reldepmod4.so", RTLD_LAZY | RTLD_GLOBAL);
+  if (dlsym (RTLD_DEFAULT, "call_me") != NULL)
+    {
+      puts ("found \"call_me\"");
+      return 0;
+    }
+  puts ("didn't find \"call_me\"");
+  return 1;
+}