* configure.in: Add `-lm' when checking for libgd. * malloc/Makefile ($(objpfx)memusa...
[glibc/pb-stable.git] / elf / testobj5.c
blobaf36aa9b1dcb6027ec3e3455651fed6adc331a53
1 #include <dlfcn.h>
2 #include <stdlib.h>
4 extern int foo (int);
6 int
7 obj5func1 (int a __attribute__ ((unused)))
9 return 66;
12 int
13 obj5func2 (int a)
15 return foo (a) + 44;
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;