From: kettenis Date: Sat, 8 Oct 2022 16:42:41 +0000 (+0000) Subject: Since the PF_MUTABLE flag is an OpenBSD-specific flag, rename it to X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2dac1912a8efee4010891c235a453d92b34b9a16;p=openbsd Since the PF_MUTABLE flag is an OpenBSD-specific flag, rename it to PF_OPENBSD_MUTABLE. While there, add the missing PF_MASKOS, which makes it obvious this bit is indeed in the space reserved for OS-specific bits. ok deraadt@ --- diff --git a/sys/sys/exec_elf.h b/sys/sys/exec_elf.h index a7ab8ade960..af486b5067e 100644 --- a/sys/sys/exec_elf.h +++ b/sys/sys/exec_elf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_elf.h,v 1.95 2022/10/07 03:20:58 deraadt Exp $ */ +/* $OpenBSD: exec_elf.h,v 1.96 2022/10/08 16:42:41 kettenis Exp $ */ /* * Copyright (c) 1995, 1996 Erik Theisen. All rights reserved. * @@ -486,10 +486,13 @@ typedef struct { #define PF_X 0x1 /* Executable */ #define PF_W 0x2 /* Writable */ #define PF_R 0x4 /* Readable */ -#define PF_MUTABLE 0x08000000 /* Mutable */ +#define PF_MASKOS 0x0ff00000 /* reserved bits for OS */ + /* specific segment flags */ #define PF_MASKPROC 0xf0000000 /* reserved bits for processor */ /* specific segment flags */ +#define PF_OPENBSD_MUTABLE 0x08000000 /* Mutable */ + /* Dynamic structure */ typedef struct { Elf32_Sword d_tag; /* controls meaning of d_val */