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
Update.
[glibc.git]
/
elf
/
constload2.c
blob
f109838cb8b760cf980754657e6537572d520d58
1
#include <dlfcn.h>
2
3
extern
int
bar
(
void
);
4
5
void
*
h
;
6
7
int
8
foo
(
void
)
9
{
10
return
42
+
bar
();
11
}
12
13
int
14
baz
(
void
)
15
{
16
return
-
21
;
17
}
18
19
void
20
__attribute__
((
__constructor__
))
21
init
(
void
)
22
{
23
h
=
dlopen
(
"constload3.so"
,
RTLD_GLOBAL
|
RTLD_LAZY
);
24
}