diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/common.h b/src/common.h index 27e3aef8..231d1dc9 100644 --- a/src/common.h +++ b/src/common.h @@ -154,12 +154,11 @@ typedef enum WasmType { } WasmType; typedef enum WasmRelocType { - WASM_RELOC_FUNC_INDEX = 0, - WASM_RELOC_FUNC_INDEX_SLEB = 1, - WASM_RELOC_TABLE_INDEX = 2, - WASM_RELOC_GLOBAL_INDEX = 3, - WASM_RELOC_TYPE_INDEX = 4, - WASM_RELOC_DATA = 5, + WASM_RELOC_FUNC_INDEX_LEB = 0, /* e.g. immediate of call instruction */ + WASM_RELOC_TABLE_INDEX_SLEB = 1, /* e.g. loading address of function */ + WASM_RELOC_TABLE_INDEX_I32 = 2, /* e.g. function address in DATA */ + WASM_RELOC_GLOBAL_INDEX_LEB = 3, /* e.g immediate of get_global inst */ + WASM_RELOC_DATA = 4, WASM_NUM_RELOC_TYPES, } WasmRelocType; |