blob: 2729ba32be8db5a41bb54c8845acb52bd545a43b [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <dlfcn.h>
2#include <stdlib.h>
3
4#include "testobj.h"
5
6int
7obj4func1 (int a __attribute__ ((unused)))
8{
9 return 55;
10}
11
12int
13obj4func2 (int a)
14{
15 return foo (a) + 43;
16}
17
18int
19preload (int a)
20{
21 int (*fp) (int) = dlsym (RTLD_NEXT, "preload");
22 if (fp != NULL)
23 return fp (a) + 10;
24 return 10;
25}