summaryrefslogtreecommitdiff
path: root/libexec/ld.so/amd64/rtld_machine.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ld.so/amd64/rtld_machine.c')
-rw-r--r--libexec/ld.so/amd64/rtld_machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/amd64/rtld_machine.c b/libexec/ld.so/amd64/rtld_machine.c
index cea350af725..fb8a8bc0fe1 100644
--- a/libexec/ld.so/amd64/rtld_machine.c
+++ b/libexec/ld.so/amd64/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.25 2015/11/02 07:02:53 guenther Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.26 2016/06/21 15:25:37 deraadt Exp $ */
/*
* Copyright (c) 2002,2004 Dale Rahn
@@ -200,7 +200,7 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz)
for (llist = object->load_list; llist != NULL; llist = llist->next) {
if (!(llist->prot & PROT_WRITE))
_dl_mprotect(llist->start, llist->size,
- llist->prot|PROT_WRITE);
+ PROT_READ | PROT_WRITE);
}
}