repo.or.cz
/
rofl0r-symbol-versioning-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix 404s
[rofl0r-symbol-versioning-test.git]
/
dso-user-dl.c
blob
8704ef9573ae7733972195af9ecab0b0b67bcbab
1
#include <dlfcn.h>
2
#include <assert.h>
3
4
typedef
void
(*
functype
)(
void
);
5
int
main
() {
6
void
*
p
=
dlopen
(
"libdso.so"
,
RTLD_NOW
);
7
assert
(
p
);
8
functype fptr
=
dlsym
(
p
,
"func"
);
9
assert
(
fptr
);
10
fptr
();
11
return
0
;
12
}