Fix llvm jit failed to lookup aot_stack_sizes symbol issue (#2384)

LVM JIT failed to lookup symbol "aot_stack_sizes" as it is an internal symbol,
change to lookup "aot_stack_sizes_alias" instead.

Reported in #2372.
This commit is contained in:
Wenyong Huang 2023-07-24 15:15:48 +08:00 committed by GitHub
parent 0f4edf9735
commit 24c6c6977b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2696,7 +2696,7 @@ aot_compile_wasm(AOTCompContext *comp_ctx)
if (comp_ctx->stack_sizes != NULL) {
LLVMOrcJITTargetAddress addr;
if ((err = LLVMOrcLLLazyJITLookup(comp_ctx->orc_jit, &addr,
aot_stack_sizes_name))) {
aot_stack_sizes_alias_name))) {
aot_handle_llvm_errmsg("failed to look up stack_sizes", err);
return false;
}