diff options
author | Anton Lindqvist <anton@cvs.openbsd.org> | 2024-01-23 10:27:13 +0000 |
---|---|---|
committer | Anton Lindqvist <anton@cvs.openbsd.org> | 2024-01-23 10:27:13 +0000 |
commit | cd2c3fc0db8cf84dd6088339eb58c854116b80e0 (patch) | |
tree | 7fb9f4ce2d2f1cc2df00a93a03103c5ed72b654a /regress/sys/kern | |
parent | 66d84113d12ded3ad9e4193c42e359b57a5e4d52 (diff) |
Place the blob in the .openbsd.mutable section to cope with recent
madvise(2) changes.
ok deraadt@
Diffstat (limited to 'regress/sys/kern')
-rw-r--r-- | regress/sys/kern/exec_self/exec_self.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <art@openbsd.org> 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" |