diff options
author | Vivek Das Mohapatra <vivek@collabora.com> | 2021-08-03 10:24:47 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-09-27 13:58:32 -0300 |
commit | 9b9601a00f380658d507b3d4a32f60984ffd092d (patch) | |
tree | 1b52e50eb418ef119803b880ddc992c695ad7b2b /elf/tst-dlmopen-rtld-audit-shared6.c | |
parent | 010fc01f004241b6afcae92f2d20fe47e6869f72 (diff) | |
download | glibc-azanella/rtld-shared.tar.gz |
elf: Add dlmopen / RTLD_SHARED testsazanella/rtld-shared
We ensure a DF_GNU_1_UNIQUE library is loaded (as a DT_NEEDED
dependency) into the target namespace by the test module.
This checks that the code path for dependencies honours the flag
and prepares a base namespace library with a proxy in the target
namespace (since the mechanism for this is not the same as for
DSOs that have already been loaded into the base namespace).
Checked on x86_64-linux-gnu and i686-linux-gnu.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/tst-dlmopen-rtld-audit-shared6.c')
-rw-r--r-- | elf/tst-dlmopen-rtld-audit-shared6.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/elf/tst-dlmopen-rtld-audit-shared6.c b/elf/tst-dlmopen-rtld-audit-shared6.c new file mode 100644 index 0000000000..7bf090678d --- /dev/null +++ b/elf/tst-dlmopen-rtld-audit-shared6.c @@ -0,0 +1,7 @@ +#include <dlfcn.h> +#include "tst-dlmopen-main.h" + +#define EXPECTED_NS 2 +#include "tst-dlmopen-rtld-shared6.h" + +#include "tst-dlmopen-std-do-test.c" |