diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-03-04 19:51:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-03-04 19:51:54 +0000 |
commit | 273a3cfb9998b1370657a95f717019c70ec8eb06 (patch) | |
tree | ad370b0b0e31189cb461520e85a846b7760e11e9 /elf/globalmod1.c | |
parent | bd575f16b497e22fb421f385b6919fcb54af12e4 (diff) | |
download | glibc-273a3cfb9998b1370657a95f717019c70ec8eb06.zip glibc-273a3cfb9998b1370657a95f717019c70ec8eb06.tar.gz glibc-273a3cfb9998b1370657a95f717019c70ec8eb06.tar.bz2 |
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.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/elf/globalmod1.c b/elf/globalmod1.c new file mode 100644 index 0000000..778a558 --- /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; +} |