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
Fix -Wundef warning for HAVE_OBSTACK
[glibc.git]
/
elf
/
globalmod1.c
blob
3f8082226959bc1c2de5d27b6e025bf39d99bacd
1
#include <dlfcn.h>
2
#include <stdio.h>
3
4
extern
int
test
(
void
);
5
6
int
7
test
(
void
)
8
{
9
(
void
)
dlopen
(
"reldepmod4.so"
,
RTLD_LAZY
|
RTLD_GLOBAL
);
10
if
(
dlsym
(
RTLD_DEFAULT
,
"call_me"
) !=
NULL
)
11
{
12
puts
(
"found
\"
call_me
\"
"
);
13
return
0
;
14
}
15
puts
(
"didn't find
\"
call_me
\"
"
);
16
return
1
;
17
}