2001-03-04 20:51:54 +01:00
|
|
|
#include <dlfcn.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2001-04-06 17:23:41 +02:00
|
|
|
extern int test (void);
|
|
|
|
|
2001-03-04 20:51:54 +01:00
|
|
|
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;
|
|
|
|
}
|