ref: 3f239a2ca520f5cd7600b3fb56d9834c35e7cf11
parent: 3152bc1b312adbd9e7eb6b8313f1739cbfb18c11
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Nov 11 03:02:26 EST 2021
libmach: Add kernel-doc comments for sectype
--- a/include/scc/scc/mach.h
+++ b/include/scc/scc/mach.h
@@ -6,6 +6,16 @@
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 @@
unsigned long long size;
unsigned flags;
int index;
- int type;
int align;
+ char type;
};
struct symbol {