projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix dlopen/dlsym regression opening libs already loaded at startup
[musl]
/
ldso
/
dynlink.c
diff --git
a/ldso/dynlink.c
b/ldso/dynlink.c
index
5361b84
..
d20dbd8
100644
(file)
--- a/
ldso/dynlink.c
+++ b/
ldso/dynlink.c
@@
-1768,9
+1768,9
@@
void *dlopen(const char *file, int mode)
}
/* First load handling */
- if (!p->
relocated
) {
+ if (!p->
deps
) {
load_deps(p);
- if ((mode & RTLD_LAZY)) {
+ if (
!p->relocated &&
(mode & RTLD_LAZY)) {
prepare_lazy(p);
if (p->deps) for (i=0; p->deps[i]; i++)
if (!p->deps[i]->relocated)