projects
/
platform
/
upstream
/
glibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* elf/dl-close.c (_dl_close_worker): Renamed from _dl_close and
[platform/upstream/glibc.git]
/
elf
/
testobj4.c
1
#include <dlfcn.h>
2
#include <stdlib.h>
3
4
#include "testobj.h"
5
6
int
7
obj4func1 (int a __attribute__ ((unused)))
8
{
9
return 55;
10
}
11
12
int
13
obj4func2 (int a)
14
{
15
return foo (a) + 43;
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
}