Update.
[platform/upstream/glibc.git] / elf / testobj3.c
1 #include <dlfcn.h>
2
3 int
4 obj3func1 (int a __attribute__ ((unused)))
5 {
6   return 44;
7 }
8
9 int
10 obj3func2 (int a)
11 {
12   return foo (a) + 42;
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 }