瀏覽代碼

Update xtensa LLVM version to 15.x (#1741)

Fix the issue that xtensa .aot size cannot be over 256K.
dongsheng28849455 3 年之前
父節點
當前提交
2d4b10b9ed
共有 2 個文件被更改,包括 4 次插入2 次删除
  1. 1 1
      build-scripts/build_llvm.py
  2. 3 1
      core/iwasm/aot/arch/aot_reloc_xtensa.c

+ 1 - 1
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",

+ 3 - 1
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;
             }