diff options
Diffstat (limited to 'elf/globalmod1.c')
-rw-r--r-- | elf/globalmod1.c | 15 |
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; +} |