summaryrefslogtreecommitdiff
path: root/lib/csu/hppa
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-10-27 19:40:24 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-10-27 19:40:24 +0000
commitcfa3ea3fd67ff08d0208c69993c921d0dbf054d0 (patch)
tree9b43edacb29b4a7567b7d3aab1853de38a3e69a2 /lib/csu/hppa
parent2a4bde1d0a9cb3589b371260779bcc4615a76457 (diff)
hppa and mips64 have private copies of RCRT0_RELRO(), which should
also perform mimmutable() ok guenther
Diffstat (limited to 'lib/csu/hppa')
-rw-r--r--lib/csu/hppa/boot_md.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/csu/hppa/boot_md.h b/lib/csu/hppa/boot_md.h
index f63936a9552..a770f7af4bb 100644
--- a/lib/csu/hppa/boot_md.h
+++ b/lib/csu/hppa/boot_md.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot_md.h,v 1.3 2022/01/31 05:43:22 guenther Exp $ */
+/* $OpenBSD: boot_md.h,v 1.4 2022/10/27 19:40:21 deraadt Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -50,6 +50,7 @@ void _dl_exit(int);
*/
#define REDIRECT_SYSCALL(x) typeof(x) x asm("_libc_"#x) __dso_hidden
REDIRECT_SYSCALL(mprotect);
+REDIRECT_SYSCALL(mimmutable);
typedef Elf_RelA RELOC_TYPE;
@@ -59,6 +60,7 @@ static size_t relro_size;
do { \
if (relro_addr != NULL && relro_size != 0) \
mprotect(relro_addr, relro_size, PROT_READ); \
+ mimmutable(relro_addr, relro_size); \
} while (0)
/*