From: anton Date: Tue, 23 Jan 2024 10:27:12 +0000 (+0000) Subject: Place the blob in the .openbsd.mutable section to cope with recent X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2ba2c1a2e6c679e0cf4344338fca0734334d0033;p=openbsd Place the blob in the .openbsd.mutable section to cope with recent madvise(2) changes. ok deraadt@ --- diff --git a/regress/sys/kern/exec_self/exec_self.c b/regress/sys/kern/exec_self/exec_self.c index 7d3e67a441a..5e7b6ef77f8 100644 --- a/regress/sys/kern/exec_self/exec_self.c +++ b/regress/sys/kern/exec_self/exec_self.c @@ -1,4 +1,4 @@ -/* $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 2002 Public Domain. */ @@ -13,7 +13,7 @@ struct { 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"