scc

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

commit 8140b403d22fd6003fb039c097c0e3557f0055b0
parent be41b2d2cae3125726d51b5f1ac4272ec5d4d255
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 11 Nov 2021 08:02:26 +0100

libmach: Add kernel-doc comments for sectype

Diffstat:
Minclude/scc/scc/mach.h | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/include/scc/scc/mach.h b/include/scc/scc/mach.h @@ -6,6 +6,16 @@ typedef struct obj Obj; typedef struct map Map; typedef struct mapsec Mapsec; +/** + * enum sectype - Section property flags + * @SREAD: The segment has read rights + * @SWRITE: The segment has write rights + * @SEXEC: The segment has execution rights + * @SLOAD: Segment data is loaded from disk to memory + * @SALLOC: Segment is allocated in memory + * @SRELOC: Segment has to be relocated + * @SABS: Segment is loaded in a specific address + */ enum sectype { SREAD = 1 << 0, SWRITE = 1 << 1, @@ -52,8 +62,8 @@ struct section { unsigned long long size; unsigned flags; int index; - int type; int align; + char type; }; struct symbol {