diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-10-08 16:42:42 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2022-10-08 16:42:42 +0000 |
commit | e97df9adb61964e8dded2fe3aeb36cb1f4c2efc7 (patch) | |
tree | f1dd1000411a574c48a494f5bde4ae717ed2fb15 /sys | |
parent | fff85c9064fec31d92746ef83b91221a86e86ec8 (diff) |
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@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/exec_elf.h | 7 |
1 files changed, 5 insertions, 2 deletions
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 */ |