Browse Source

spec-test-script: Use -mtext-section-literals for xtensa xip (#3666)

YAMAMOTO Takashi 1 năm trước cách đây
mục cha
commit
4dfdbbb5a5
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      tests/wamr-test-suites/spec-test-script/runtest.py

+ 4 - 0
tests/wamr-test-suites/spec-test-script/runtest.py

@@ -1124,6 +1124,10 @@ def compile_wasm_to_aot(wasm_tempfile, aot_tempfile, runner, opts, r, output = '
         cmd.append("--enable-indirect-mode")
         cmd.append("--disable-llvm-intrinsics")
 
+        # avoid l32r relocations for xtensa
+        if opts.target == "xtensa":
+            cmd.append("--mllvm=-mtext-section-literals")
+
     if opts.multi_thread:
         cmd.append("--enable-multi-thread")