Update.
[glibc.git] / elf / testobj1.c
blobd5b485f1ed42b875490ef78eae12eb9a2288eb23
1 #include <dlfcn.h>
2 #include <stdlib.h>
4 extern int foo (int);
6 int
7 obj1func1 (int a __attribute__ ((unused)))
9 return 42;
12 int
13 obj1func2 (int a)
15 return foo (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;