repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(EM_*): Synch with official list.
[glibc.git]
/
elf
/
globalmod1.c
blob
778a558746b69ad75a0d4fdccfa0dd6ba88efaa0
1
#include <dlfcn.h>
2
#include <stdio.h>
3
4
int
5
test
(
void
)
6
{
7
(
void
)
dlopen
(
"reldepmod4.so"
,
RTLD_LAZY
|
RTLD_GLOBAL
);
8
if
(
dlsym
(
RTLD_DEFAULT
,
"call_me"
) !=
NULL
)
9
{
10
puts
(
"found
\"
call_me
\"
"
);
11
return
0
;
12
}
13
puts
(
"didn't find
\"
call_me
\"
"
);
14
return
1
;
15
}