From 24c6c6977ba1d7fcbcb09c4b3fcfaea2ed0527fe Mon Sep 17 00:00:00 2001 From: Wenyong Huang Date: Mon, 24 Jul 2023 15:15:48 +0800 Subject: [PATCH] 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. --- core/iwasm/compilation/aot_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/iwasm/compilation/aot_compiler.c b/core/iwasm/compilation/aot_compiler.c index 94a378c4..e99e2ae7 100644 --- a/core/iwasm/compilation/aot_compiler.c +++ b/core/iwasm/compilation/aot_compiler.c @@ -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; }