scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 498e209632603026d466f7f5ca7c76188f8ed23a
parent f627c8efe61656e28b04a5f8bdd05477c765a2dc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 21 Jan 2025 19:31:28 +0100

libmach/elf: Add segment permision bits

Diffstat:
Minclude/bits/scc/elf/elfphdr.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/bits/scc/elf/elfphdr.h b/include/bits/scc/elf/elfphdr.h @@ -14,6 +14,10 @@ #define PT_LOPROC 0x70000000 /* reserved range for processor */ #define PT_HIPROC 0x7fffffff /* specific segment types */ +#define PF_X 1 /* Execute */ +#define PF_W 2 /* Write */ +#define PF_R 4 /* Read */ + #define ELFP32SZ 32 #define ELFP64SZ 56