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
hppa: Add MAP_HUGETLB and MAP_STACK defines [BZ #19285]
[glibc.git]
/
elf
/
reldepmod3.c
blob
66a996cd90aec8a45cfec40fa06e70daf99736b5
1
#include <dlfcn.h>
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
extern
int
call_me
(
void
);
6
7
int
8
call_me
(
void
)
9
{
10
int
(*
fp
) (
void
);
11
12
fp
=
dlsym
(
RTLD_DEFAULT
,
"foo"
);
13
if
(
fp
==
NULL
)
14
{
15
printf
(
"cannot get address of foo in global scope: %s
\n
"
,
dlerror
());
16
exit
(
1
);
17
}
18
19
return
fp
() -
42
;
20
}