summaryrefslogtreecommitdiff
path: root/src/common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.cc')
-rw-r--r--src/common.cc15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/common.cc b/src/common.cc
index 922489be..65b2e15c 100644
--- a/src/common.cc
+++ b/src/common.cc
@@ -37,15 +37,12 @@ Reloc::Reloc(RelocType type, Offset offset, Index index, int32_t addend)
const char* g_kind_name[] = {"func", "table", "memory", "global", "except"};
WABT_STATIC_ASSERT(WABT_ARRAY_SIZE(g_kind_name) == kExternalKindCount);
-const char* g_reloc_type_name[] = {"R_FUNC_INDEX_LEB",
- "R_TABLE_INDEX_SLEB",
- "R_TABLE_INDEX_I32",
- "R_GLOBAL_ADDR_LEB",
- "R_GLOBAL_ADDR_SLEB",
- "R_GLOBAL_ADDR_I32",
- "R_TYPE_INDEX_LEB",
- "R_GLOBAL_INDEX_LEB",
- };
+const char* g_reloc_type_name[] = {
+ "R_WEBASSEMBLY_FUNCTION_INDEX_LEB", "R_WEBASSEMBLY_TABLE_INDEX_SLEB",
+ "R_WEBASSEMBLY_TABLE_INDEX_I32", "R_WEBASSEMBLY_MEMORY_ADDR_LEB",
+ "R_WEBASSEMBLY_MEMORY_ADDR_SLEB", "R_WEBASSEMBLY_MEMORY_ADDR_I32",
+ "R_WEBASSEMBLY_TYPE_INDEX_LEB", "R_WEBASSEMBLY_GLOBAL_INDEX_LEB",
+};
WABT_STATIC_ASSERT(WABT_ARRAY_SIZE(g_reloc_type_name) == kRelocTypeCount);
Result ReadFile(const char* filename, std::vector<uint8_t>* out_data) {