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
, *h1
, *h2
, *h3
, *h4
;
20 h0
= dlopen("libbar.so", RTLD_LAZY
);
24 h1
= dlmopen(LM_ID_BASE
, "libfoo.so", RTLD_LAZY
);
28 h2
= dlopen("libzzz.so", RTLD_LAZY
);
32 h3
= dlopen("libfoo.so", RTLD_LAZY
);
36 h4
= dlopen("libfoo.so", RTLD_LAZY
);
41 foo
= dlsym(h1
, "foo");
70 fprintf(stderr
, "%s\n", error
);
This page took 0.056999 seconds and 5 git commands to generate.