bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.66k stars 577 forks source link

aot: xtensa xip produces relocations for large functions #3576

Open yamt opened 3 days ago

yamt commented 3 days ago
% wamrc -o aot --target=xtensa --size-level=0 --xip large_func.wasm
Create AoT compiler with:
  target:        xtensa
  target cpu:    
  target triple: xtensa-pc-linux-gnu
  cpu features:  
  opt level:     3
  size level:    0
  output format: AoT file
[18:47:19:774 - 12600E600]: 3 text relocations in .rela.text section for indirect mode
Compile success, file aot was generated.
% 

i will attach the large_func.wasm to this PR.

i guess it reproduces with the most of functions larger than the distance which xtensa PC relative jumps can reach. (128KB) large_func.wasm.gz