提交 436d3723 编写于 作者: R Rich Felker

if dynamic linker's relro mprotect call fails, include reason in message

上级 fa7248c9
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册