1 /* _GNU_SOURCE is defined by config.h */
9 * libfoo has a direct dependency on libbar.
10 * libbar has a direct dependency on libzzz.
11 * This test is therefore a mix of dlopen/dlclose and dlmopen/dlclose of
12 * libfoo, and of its direct dependencies.
14 int main(int argc
, char **argv
)
16 void *h0
, *h2
, *h3
, *h4
;
25 h0
= dlopen("libbar.so", RTLD_LAZY
);
31 h1
= dlmopen(LM_ID_BASE
, "libfoo.so", RTLD_LAZY
);
37 h2
= dlopen("libzzz.so", RTLD_LAZY
);
41 h3
= dlopen("libfoo.so", RTLD_LAZY
);
45 h4
= dlopen("libfoo.so", RTLD_LAZY
);
50 foo
= dlsym(h3
, "foo");
83 fprintf(stderr
, "%s\n", error
);
This page took 0.030339 seconds and 4 git commands to generate.