-/* $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
_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 */