diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2014-12-25 21:38:46 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2014-12-25 21:38:46 +0000 |
commit | 60213c635b62d53395dda1f057e497dda0f0b6a8 (patch) | |
tree | 8af2cc9a983e72efb8aecd9c10bbb86a45f16cd1 /lib/csu/boot.h | |
parent | 2be145afdc82e5f0a96d4709a5201816e0218bb1 (diff) |
Use archdep.h GOT_PERMS define for mprotect of GOT. okay kettenis@
Diffstat (limited to 'lib/csu/boot.h')
-rw-r--r-- | lib/csu/boot.h | 4 |
1 files 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 */ |