]>
Commit | Line | Data |
---|---|---|
3d91edb2 | 1 | #include <dlfcn.h> |
d3556ac9 | 2 | #include <stdlib.h> |
3d91edb2 | 3 | |
482eec0d UD |
4 | int |
5 | obj2func1 (int a __attribute__ ((unused))) | |
6 | { | |
7 | return 43; | |
8 | } | |
9 | ||
10 | int | |
11 | obj2func2 (int a) | |
12 | { | |
13 | return obj1func1 (a) + 10; | |
14 | } | |
3d91edb2 UD |
15 | |
16 | int | |
17 | preload (int a) | |
18 | { | |
19 | int (*fp) (int) = dlsym (RTLD_NEXT, "preload"); | |
20 | if (fp != NULL) | |
21 | return fp (a) + 10; | |
22 | return 10; | |
23 | } |