diff options
Diffstat (limited to 'REORG.TODO/elf/globalmod1.c')
-rw-r--r-- | REORG.TODO/elf/globalmod1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/REORG.TODO/elf/globalmod1.c b/REORG.TODO/elf/globalmod1.c new file mode 100644 index 0000000000..3f80822269 --- /dev/null +++ b/REORG.TODO/elf/globalmod1.c @@ -0,0 +1,17 @@ +#include <dlfcn.h> +#include <stdio.h> + +extern int test (void); + +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; +} |