]> git.ipfire.org Git - thirdparty/glibc.git/blob - elf/testobj1.c
Update.
[thirdparty/glibc.git] / elf / testobj1.c
1 #include <dlfcn.h>
2
3 int
4 obj1func1 (int a __attribute__ ((unused)))
5 {
6 return 42;
7 }
8
9 int
10 obj1func2 (int a)
11 {
12 return foo (a) + 10;
13 }
14
15 int
16 preload (int a)
17 {
18 int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
19 if (fp != NULL)
20 return fp (a) + 10;
21 return 10;
22 }