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
/
testobj5.c
blob
e30ca14cdc7663e988825f642b3bc4d4617bbf7c
1
#include <dlfcn.h>
2
#include <stdlib.h>
3
4
int
5
obj5func1
(
int
a
__attribute__
((
unused
)))
6
{
7
return
66
;
8
}
9
10
int
11
obj5func2
(
int
a
)
12
{
13
return
foo
(
a
) +
44
;
14
}
15
16
int
17
preload
(
int
a
)
18
{
19
int
(*
fp
) (
int
) =
dlsym
(
RTLD_NEXT
,
"preload"
);
20
if
(
fp
!=
NULL
)
21
return
fp
(
a
) +
10
;
22
return
10
;
23
}