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
Move BZ#11261 from 2.18 to 2.16 bug list.
[glibc.git]
/
elf
/
unload8mod3.c
blob
d49e22b24c50dba28f72efbbde20476208019fc9
1
#include <dlfcn.h>
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
void
6
mod3_fini2
(
void
)
7
{
8
}
9
10
void
11
mod3_fini
(
void
)
12
{
13
mod3_fini2
();
14
}
15
16
void
17
mod3
(
void
)
18
{
19
void
*
h
=
dlopen
(
"$ORIGIN/unload8mod2.so"
,
RTLD_LAZY
);
20
if
(
h
==
NULL
)
21
{
22
puts
(
"dlopen unload8mod2.so failed"
);
23
exit
(
1
);
24
}
25
26
atexit
(
mod3_fini
);
27
}