mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
273a3cfb99
* elf/global.c: New file. * elf/globalmod1.c: New file. * elf/Makefile: Add rules to build and run global.
16 lines
276 B
C
16 lines
276 B
C
#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;
|
|
}
|