libdl: dlopen() mustn't forget RTLD_NODELETE flag
commit27f1b2c66c67e601dd619a1def70a8fd7ca5eeba
authorLeonid Lisovskiy <lly.dev@gmail.com>
Wed, 13 Jan 2016 18:00:05 +0000 (13 21:00 +0300)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Sun, 31 Jan 2016 16:39:37 +0000 (31 17:39 +0100)
tree90a57981936937d51fa6dab56026f5f7c8bfcc80
parent12a85731dc5fda3bc01ab19c82678b3bf122d794
libdl: dlopen() mustn't forget RTLD_NODELETE flag

If RTLD_NODELETE is passed to dlopen() rather than set on shared
library itself, flag propagation to rtld_flags is missed.

Test-case taken from glibc.

Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
ldso/libdl/libdl.c
test/dlopen/Makefile.in
test/dlopen/nodelete.c [new file with mode: 0644]
test/dlopen/nodelmod1.c [new file with mode: 0644]
test/dlopen/nodelmod2.c [new file with mode: 0644]
test/dlopen/nodelmod3.c [new file with mode: 0644]
test/dlopen/nodelmod4.c [new file with mode: 0644]