⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
LTTng-UST
All Projects
LTTng
»
LTTng-UST
Overview
Activity
Roadmap
Issues
Gantt
Calendar
News
Repository
Download (303 Bytes)
Bug #1014
ยป test.c
Simon Marchi
, 05/06/2016 10:46 AM
#include
<dlfcn.h>
#include
<stdio.h>
int
main
()
{
void
*
lib
=
dlopen
(
"./libhello_so"
,
RTLD_GLOBAL
|
RTLD_NOW
);
if
(
!
lib
)
{
printf
(
"%s
\n
"
,
dlerror
());
return
0
;
}
void
(
*
foo
)(
void
);
printf
(
"%p
\n
"
,
lib
);
void
*
foov
=
dlsym
(
lib
,
"foo"
);
printf
(
"%p
\n
"
,
foov
);
foo
=
foov
;
foo
();
}
(1-1/1)
Loading...