-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
spec test on nuttx is broken #2312
Comments
The log is like below:
Seems there is something wrong in handling the |
i will take a look tomorrow. |
the code in question tries to avoid requiring the symbol a bit. wasm-micro-runtime/core/iwasm/compilation/aot_llvm.c Lines 1425 to 1428 in ac9e789
but riscv still seems to need the symbol.
as our aot format doesn't seem to have a symbol table, probably it's simplest to also, i guess we need to implement these riscv relocation types. does it make sense? |
the same symptom for armhf too. |
@yamt Yes, I think it should be good to put the global array into a dedicated section, like what wamrc --enable-llvm-pgo --format=llvmir-opt -o test.ll test.wasm The LLVM IRs generated are like:
Not sure, but we can have a try, the R_RISCV_HI20/R_RISCV_LO12_I/R_RISCV_LO12_S have already been implemented, R_RISCV_PCREL_HI20/R_RISCV_PCREL_LO12_I may be similar to them, and we can also refer to document here: Seems that R_RISCV_HI20 is to replace the HI20 (20 bits) of the address (32 bits) to patch with |
ok. |
for this one, i filed a separate issue: #2316 |
This PR partly fixes #2312. Lightly tested on qemu riscv64.
…2317) To solve the "AOT module load failed: resolve symbol stack_sizes failed" issue. This PR partly fixes bytecodealliance#2312 and was lightly tested on qemu armhf.
…e#2318) This PR partly fixes bytecodealliance#2312. Lightly tested on qemu riscv64.
https://github.com/bytecodealliance/wasm-micro-runtime/actions/workflows/spec_test_on_nuttx.yml
@wenyongh @no1wudi for visibility
The text was updated successfully, but these errors were encountered: