wasm-micro-runtime/core
dongsheng28849455 4f6d70bc52
Use indirect call in pre-checker function to avoid relocation in XIP mode (#3142)
The stack profiler `aot_func#xxx` calls the wrapped function of `aot_func_internal#xxx`
by using symbol reference,  but in some platform like xtensa, it’s translated into a native
long call, which needs to resolve the indirect address by relocation and breaks the XIP
feature which requires the eliminating of relocation.

The solution is to change the symbol reference into an indirect call through the lookup
table, the code will be like this:
```llvm
call_wrapped_func:                                ; preds = %stack_bound_check_block
  %func_addr1 = getelementptr inbounds ptr, ptr %func_ptrs_ptr, i32 75
  %func_tmp2 = load ptr, ptr %func_addr1, align 4
  tail call void %func_tmp2(ptr %exec_env)
  ret void
```
2024-02-27 11:17:57 +08:00
..
app-mgr Separate app-manager and app-framework from WAMR (#3129) 2024-02-20 18:12:36 +08:00
deps Separate app-manager and app-framework from WAMR (#3129) 2024-02-20 18:12:36 +08:00
iwasm Use indirect call in pre-checker function to avoid relocation in XIP mode (#3142) 2024-02-27 11:17:57 +08:00
shared zephyr: include math only with minimal libc (#3177) 2024-02-23 11:24:51 +08:00
config.h Implement GC (Garbage Collection) feature for interpreter, AOT and LLVM-JIT (#3125) 2024-02-06 20:47:11 +08:00
version.h Update version number to 1.3.2 and update release notes (#3083) 2024-02-01 12:42:12 +08:00