projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1ae7b7
)
fix dlerror when using dlopen with a static libc
author
Clément Vasseur
<clement.vasseur@gmail.com>
Thu, 7 Aug 2014 15:49:29 +0000
(17:49 +0200)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 8 Aug 2014 04:47:59 +0000
(
00:47
-0400)
when the dynamic loader is disabled, dlopen fails correctly but dlerror
did not return a human readable error string like it should have.
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 12f14f7b6b373f6688e3f79085162ddd9deda0de..aa1b99ad30fcf16e5aaa1af7f2b5a72a45bf8ae4 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-1603,6
+1603,8
@@
static int invalid_dso_handle(void *h)
}
void *dlopen(const char *file, int mode)
{
+ strcpy(errbuf, "Dynamic loading not supported");
+ errflag = 1;
return 0;
}
void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra)