aot: Avoid possible relocations around "stack_sizes" for XIP mode (#2322)

Fixes https://github.com/bytecodealliance/wasm-micro-runtime/issues/2316

Lightly tested on riscv64 qemu.
This commit is contained in:
YAMAMOTO Takashi
2023-06-29 19:45:33 +09:00
committed by GitHub
parent 5c13bbbde7
commit 03418ef5ac
4 changed files with 57 additions and 1 deletions

View File

@ -1843,6 +1843,13 @@ get_data_section_addr(AOTModule *module, const char *section_name,
return NULL;
}
const void *
aot_get_data_section_addr(AOTModule *module, const char *section_name,
uint32 *p_data_size)
{
return get_data_section_addr(module, section_name, p_data_size);
}
static void *
resolve_target_sym(const char *symbol, int32 *p_index)
{