mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
f4964b5cd4
2001-04-06 Andreas Jaeger <aj@suse.de> * include/sys/profil.h: New file. * dlfcn/modatexit.c: Add prototypes to silence GCC. * dlfcn/modcxaatexit.c: Likewise. * elf/globalmod1.c: Likewise.
18 lines
301 B
C
18 lines
301 B
C
#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;
|
|
}
|