From c4defb887759a849e2176dd63900c147cb450352 Mon Sep 17 00:00:00 2001 From: dongsheng28849455 <68947925+dongsheng28849455@users.noreply.github.com> Date: Thu, 24 Nov 2022 12:48:31 +0800 Subject: [PATCH] Update xtensa LLVM version to 15.x (#1741) Fix the issue that xtensa .aot size cannot be over 256K. --- build-scripts/build_llvm.py | 2 +- core/iwasm/aot/arch/aot_reloc_xtensa.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build-scripts/build_llvm.py b/build-scripts/build_llvm.py index 4e37e390b..bc0daf1f7 100755 --- a/build-scripts/build_llvm.py +++ b/build-scripts/build_llvm.py @@ -208,7 +208,7 @@ def main(): }, "xtensa": { "repo": "https://github.com/espressif/llvm-project.git", - "branch": "xtensa_release_13.0.0", + "branch": "xtensa_release_15.x", }, "default": { "repo": "https://github.com/llvm/llvm-project.git", diff --git a/core/iwasm/aot/arch/aot_reloc_xtensa.c b/core/iwasm/aot/arch/aot_reloc_xtensa.c index 91766831d..731ae6395 100644 --- a/core/iwasm/aot/arch/aot_reloc_xtensa.c +++ b/core/iwasm/aot/arch/aot_reloc_xtensa.c @@ -259,7 +259,9 @@ apply_relocation(AOTModule *module, uint8 *target_section_addr, if (relative_offset < -256 * BH_KB || relative_offset > -4) { set_error_buf(error_buf, error_buf_size, "AOT module load failed: " - "target address out of range."); + "target address out of range.\n" + "Try using `wamrc --size-level=0` to generate " + ".literal island."); return false; }