From 61923635ca192795d542df18c15a97542d32ac60 Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 18 Dec 2022 19:33:11 +0000 Subject: [PATCH] cannot try the boot.data unmap until all the ld.script are commited, and fixed to identify the region correctly. --- libexec/ld.so/loader.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c index f3f811687a9..cbe5d83f3ea 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.207 2022/12/16 03:14:52 deraadt Exp $ */ +/* $OpenBSD: loader.c,v 1.208 2022/12/18 19:33:11 deraadt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -215,14 +215,18 @@ void _dl_clean_boot(void) { extern char boot_text_start[], boot_text_end[]; +#if 0 /* XXX breaks boehm-gc?!? */ extern char boot_data_start[], boot_data_end[]; +#endif _dl_mmap(boot_text_start, boot_text_end - boot_text_start, PROT_NONE, MAP_FIXED | MAP_PRIVATE | MAP_ANON, -1, 0); _dl_mimmutable(boot_text_start, boot_text_end - boot_text_start); +#if 0 /* XXX breaks boehm-gc?!? */ _dl_mmap(boot_data_start, boot_data_end - boot_data_start, PROT_NONE, MAP_FIXED | MAP_PRIVATE | MAP_ANON, -1, 0); _dl_mimmutable(boot_data_start, boot_data_end - boot_data_start); +#endif } #endif /* DO_CLEAN_BOOT */ -- 2.20.1