diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-03-25 16:23:27 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-03-25 16:23:27 -0400 |
commit | 436d3723afcb1ee40eb849d56fd0472d83dd598c (patch) | |
tree | cbabdd870e4108c4bbd7a48d5ab51d94daecbcac /src/ldso/dynlink.c | |
parent | fa7248c971b04ae76c21f1c48684530290a85d12 (diff) | |
download | musl-436d3723afcb1ee40eb849d56fd0472d83dd598c.tar.gz musl-436d3723afcb1ee40eb849d56fd0472d83dd598c.tar.bz2 musl-436d3723afcb1ee40eb849d56fd0472d83dd598c.tar.xz musl-436d3723afcb1ee40eb849d56fd0472d83dd598c.zip |
if dynamic linker's relro mprotect call fails, include reason in message
Diffstat (limited to 'src/ldso/dynlink.c')
-rw-r--r-- | src/ldso/dynlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 7058bf61..3622329c 100644 --- 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); |