Back to index

glibc  2.9
globalmod1.c
Go to the documentation of this file.
00001 #include <dlfcn.h>
00002 #include <stdio.h>
00003 
00004 extern int test (void);
00005 
00006 int
00007 test (void)
00008 {
00009   (void) dlopen ("reldepmod4.so", RTLD_LAZY | RTLD_GLOBAL);
00010   if (dlsym (RTLD_DEFAULT, "call_me") != NULL)
00011     {
00012       puts ("found \"call_me\"");
00013       return 0;
00014     }
00015   puts ("didn't find \"call_me\"");
00016   return 1;
00017 }