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 */
14 #include <common/compat/errno.hpp>
17 * libfoo has a direct dependency on libbar.
18 * libbar has a direct dependency on libzzz.
19 * This test is therefore a mix of dlopen/dlclose and dlmopen/dlclose of
20 * libfoo, and of its direct dependencies.
24 void *h0
, *h2
, *h3
, *h4
;
33 h0
= dlopen("libbar.so", RTLD_LAZY
);
39 h1
= dlmopen(LM_ID_BASE
, "libfoo.so", RTLD_LAZY
);
45 h2
= dlopen("libzzz.so", RTLD_LAZY
);
49 h3
= dlopen("libfoo.so", RTLD_LAZY
);
53 h4
= dlopen("libfoo.so", RTLD_LAZY
);
58 foo
= dlsym(h3
, "foo");
91 fprintf(stderr
, "%s\n", error
);
This page took 0.04903 seconds and 4 git commands to generate.