Update.
[glibc.git] / elf / testobj2.c
blobb9c2ca8fcc2c331ce26edae1ab64a806559d2cc2
1 #include <dlfcn.h>
2 #include <stdlib.h>
4 extern int obj1func1 (int);
6 int
7 obj2func1 (int a __attribute__ ((unused)))
9 return 43;
12 int
13 obj2func2 (int a)
15 return obj1func1 (a) + 10;
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;