diff options
Diffstat (limited to 'elf/testobj5.c')
-rw-r--r-- | elf/testobj5.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/elf/testobj5.c b/elf/testobj5.c new file mode 100644 index 0000000000..0a2bbe07db --- /dev/null +++ b/elf/testobj5.c @@ -0,0 +1,22 @@ +#include <dlfcn.h> + +int +obj5func1 (int a __attribute__ ((unused))) +{ + return 66; +} + +int +obj5func2 (int a) +{ + return foo (a) + 44; +} + +int +preload (int a) +{ + int (*fp) (int) = dlsym (RTLD_NEXT, "preload"); + if (fp != NULL) + return fp (a) + 10; + return 10; +} |