-
Notifications
You must be signed in to change notification settings - Fork 732
Open
Description
with the recent version of LLVM, wamrc --size-level=1 often generates R_X86_64_32S relocations.
it's bad because we suggest --size-level=1 to avoid that kind of relocations.
wasm-micro-runtime/core/iwasm/aot/arch/aot_reloc_x86_64.c
Lines 196 to 201 in bb053e3
| snprintf(buf, sizeof(buf), | |
| "AOT module load failed: " | |
| "relocation truncated to fit %s failed. " | |
| "Try using wamrc with --size-level=1 option.", | |
| reloc_type == R_X86_64_32 ? "R_X86_64_32" | |
| : "R_X86_64_32S"); |
it seems the relocation is for jump tables.
a workaround: disable jump tables
another workaround: use large model (but it's broken for other reasons: #3034)
Metadata
Metadata
Assignees
Labels
No labels