madvise(2) changes.
ok deraadt@
-/* $OpenBSD: exec_self.c,v 1.2 2016/03/17 19:40:43 krw Exp $ */
+/* $OpenBSD: exec_self.c,v 1.3 2024/01/23 10:27:12 anton Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> 2002 Public Domain.
*/
const char pad1[256*1024]; /* avoid read-ahead. */
const char string[256*1024]; /* at least one page */
const char pad2[256*1024]; /* avoid read-behind. */
-} const blob = {
+} const blob __attribute__((section(".openbsd.mutable"))) = {
"padding1",
"the_test",
"padding2"