From 110b30cead934ff8a63389290847e3c19b5a570b Mon Sep 17 00:00:00 2001 From: kurt Date: Thu, 25 Dec 2014 21:38:45 +0000 Subject: [PATCH] Use archdep.h GOT_PERMS define for mprotect of GOT. okay kettenis@ --- lib/csu/boot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/csu/boot.h b/lib/csu/boot.h index 177f8016bff..f7c8c5f9f21 100644 --- a/lib/csu/boot.h +++ b/lib/csu/boot.h @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.h,v 1.6 2014/12/24 14:04:09 kurt Exp $ */ +/* $OpenBSD: boot.h,v 1.7 2014/12/25 21:38:45 kurt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -290,6 +290,6 @@ _dl_boot_bind(const long sp, long *dl_data, Elf_Dyn *dynamicp) start = ELF_TRUNC((Elf_Addr)__got_start, pagesize); size = ELF_ROUND((Elf_Addr)__got_end - start, pagesize); - mprotect((void *)start, size, PROT_READ); + mprotect((void *)start, size, GOT_PERMS); } #endif /* RCRT0 */ -- 2.20.1