repo.or.cz
/
glibc
/
pb-stable.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* configure.in: Add `-lm' when checking for libgd. * malloc/Makefile ($(objpfx)memusa...
[glibc/pb-stable.git]
/
elf
/
testobj5.c
blob
af36aa9b1dcb6027ec3e3455651fed6adc331a53
1
#include <dlfcn.h>
2
#include <stdlib.h>
3
4
extern
int
foo
(
int
);
5
6
int
7
obj5func1
(
int
a
__attribute__
((
unused
)))
8
{
9
return
66
;
10
}
11
12
int
13
obj5func2
(
int
a
)
14
{
15
return
foo
(
a
) +
44
;
16
}
17
18
int
19
preload
(
int
a
)
20
{
21
int
(*
fp
) (
int
) =
dlsym
(
RTLD_NEXT
,
"preload"
);
22
if
(
fp
!=
NULL
)
23
return
fp
(
a
) +
10
;
24
return
10
;
25
}