arm: Implement memchr ifunc selection in C
[glibc.git] / elf / testobj2.c
blob7e4b6109825e5cff76410534ecb9c5121f4bb33d
1 #include <dlfcn.h>
2 #include <stdlib.h>
3 #include <stdio.h>
5 #include "testobj.h"
7 int
8 obj2func1 (int a __attribute__ ((unused)))
10 return 43;
13 int
14 obj2func2 (int a)
16 return obj1func1 (a) + 10;
19 int
20 preload (int a)
22 int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
23 if (fp != NULL)
24 return fp (a) + 10;
25 return 10;
28 void
29 p (void)
31 puts ("hello world");