Add new E_TYPE_XIP to indicate XIP mode (#874)

Emit e_type = E_TYPE_XIP in target info section to indicate that it is
an XIP file, and replace related checks in aot loader.
This commit is contained in:
Huang Qi
2021-12-08 18:43:08 +08:00
committed by GitHub
parent 5fbf03fa6e
commit 208cafc776
7 changed files with 80 additions and 34 deletions

View File

@ -135,7 +135,6 @@ typedef struct AOTModule {
AOTMemInitData **mem_init_data_list;
/* native symbol */
uint32 native_symbol_count;
void **native_symbol_list;
/* import tables */
@ -246,6 +245,9 @@ typedef struct AOTModule {
/* is jit mode or not */
bool is_jit_mode;
/* is indirect mode or not */
bool is_indirect_mode;
#if WASM_ENABLE_JIT != 0
WASMModule *wasm_module;
AOTCompContext *comp_ctx;