Update.
[glibc.git] / elf / testobj3.c
blobd8ede36916b3a23bf66e0bc77ae84bad35bee344
1 #include <dlfcn.h>
2 #include <stdlib.h>
4 extern int foo (int);
6 int
7 obj3func1 (int a __attribute__ ((unused)))
9 return 44;
12 int
13 obj3func2 (int a)
15 return foo (a) + 42;
18 int
19 preload (int a)
21 int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
22 if (fp != NULL)
23 return fp (a) + 10;
24 return 10;