projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* sysdeps/sparc/machine-gmon.h: New file.
[platform/upstream/glibc.git]
/
elf
/
testobj5.c
1
#include <dlfcn.h>
2
#include <stdlib.h>
3
4
#include "testobj.h"
5
6
7
int
8
obj5func1 (int a __attribute__ ((unused)))
9
{
10
return 66;
11
}
12
13
int
14
obj5func2 (int a)
15
{
16
return foo (a) + 44;
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
}