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:
fa7248c
)
if dynamic linker's relro mprotect call fails, include reason in message
author
Rich Felker
<dalias@aerifal.cx>
Tue, 25 Mar 2014 20:23:27 +0000
(16:23 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 25 Mar 2014 20:23:27 +0000
(16:23 -0400)
src/ldso/dynlink.c
patch
|
blob
|
history
diff --git
a/src/ldso/dynlink.c
b/src/ldso/dynlink.c
index 7058bf61326f183d4ad8134f2bde9e72c7e4a865..3622329cff46802f3b7f2350f253afa37258d0e8 100644
(file)
--- a/
src/ldso/dynlink.c
+++ b/
src/ldso/dynlink.c
@@
-781,7
+781,7
@@
static void reloc_all(struct dso *p)
if (p->relro_start != p->relro_end &&
mprotect(p->base+p->relro_start, p->relro_end-p->relro_start, PROT_READ) < 0) {
snprintf(errbuf, sizeof errbuf,
- "Error relocating %s: RELRO protection failed",
+ "Error relocating %s: RELRO protection failed
: %m
",
p->name);
if (runtime) longjmp(*rtld_fail, 1);
dprintf(2, "%s\n", errbuf);