2 * Copyright (C) 2016 Antoine Busque <abusque@efficios.com>
4 * SPDX-License-Identifier: GPL-2.0-only
8 /* _GNU_SOURCE is defined by config.h */
16 * libfoo has a direct dependency on libbar.
17 * libbar has a direct dependency on libzzz.
18 * This test is therefore a mix of dlopen/dlclose and dlmopen/dlclose of
19 * libfoo, and of its direct dependencies.
21 int main(int argc
, char **argv
)
23 void *h0
, *h2
, *h3
, *h4
;
32 h0
= dlopen("libbar.so", RTLD_LAZY
);
38 h1
= dlmopen(LM_ID_BASE
, "libfoo.so", RTLD_LAZY
);
44 h2
= dlopen("libzzz.so", RTLD_LAZY
);
48 h3
= dlopen("libfoo.so", RTLD_LAZY
);
52 h4
= dlopen("libfoo.so", RTLD_LAZY
);
57 foo
= dlsym(h3
, "foo");
90 fprintf(stderr
, "%s\n", error
);
This page took 0.084627 seconds and 4 git commands to generate.