diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 18eece37..3152e287 100644 --- a/src/common.h +++ b/src/common.h @@ -224,6 +224,15 @@ enum class Type : int32_t { }; typedef std::vector<Type> TypeVector; +// Matches binary format, do not change. +enum SegmentFlags : uint8_t { + SegIndexZero = 0, + SegPassive = 1, + SegIndexOther = 2, + + SegFlagMax = SegIndexOther, +}; + enum class RelocType { FuncIndexLEB = 0, // e.g. Immediate of call instruction TableIndexSLEB = 1, // e.g. Loading address of function |