From 273a3cfb9998b1370657a95f717019c70ec8eb06 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 4 Mar 2001 19:51:54 +0000 Subject: Update. * elf/global.c: New file. * elf/globalmod1.c: New file. * elf/Makefile: Add rules to build and run global. --- elf/globalmod1.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 elf/globalmod1.c (limited to 'elf/globalmod1.c') 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 +#include + +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; +} -- cgit v1.2.3