repo.or.cz
/
glibc
/
history.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Minimal message improvements.
[glibc/history.git]
/
elf
/
testobj3.c
blob
c025ff631a8017e1a73c6497db7335fb9ffe9ae6
1
#include <dlfcn.h>
2
#include <stdlib.h>
3
4
#include
"testobj.h"
5
6
7
int
8
obj3func1
(
int
a
__attribute__
((
unused
)))
9
{
10
return
44
;
11
}
12
13
int
14
obj3func2
(
int
a
)
15
{
16
return
foo
(
a
) +
42
;
17
}
18
19
int
20
preload
(
int
a
)
21
{
22
int
(*
fp
) (
int
) =
dlsym
(
RTLD_NEXT
,
"preload"
);
23
if
(
fp
!=
NULL
)
24
return
fp
(
a
) +
10
;
25
return
10
;
26
}