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
* sysdeps/m68k/dl-machine.h (_dl_start_user): Pass correct
[glibc.git]
/
elf
/
reldepmod3.c
blob
cadda630d91c8c0df44b1e5af763f194a8bd19ad
1
#include <dlfcn.h>
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
int
6
call_me
(
void
)
7
{
8
int
(*
fp
) (
void
);
9
10
fp
=
dlsym
(
RTLD_DEFAULT
,
"foo"
);
11
if
(
fp
==
NULL
)
12
{
13
printf
(
"cannot get address of foo in global scope: %s
\n
"
,
dlerror
());
14
exit
(
1
);
15
}
16
17
return
fp
() -
42
;
18
}