Skip to content

Commit 4dfdbbb

Browse files
authored
spec-test-script: Use -mtext-section-literals for xtensa xip (#3666)
1 parent 83b3655 commit 4dfdbbb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/wamr-test-suites/spec-test-script/runtest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,6 +1124,10 @@ def compile_wasm_to_aot(wasm_tempfile, aot_tempfile, runner, opts, r, output = '
11241124
cmd.append("--enable-indirect-mode")
11251125
cmd.append("--disable-llvm-intrinsics")
11261126

1127+
# avoid l32r relocations for xtensa
1128+
if opts.target == "xtensa":
1129+
cmd.append("--mllvm=-mtext-section-literals")
1130+
11271131
if opts.multi_thread:
11281132
cmd.append("--enable-multi-thread")
11291133

0 commit comments

Comments
 (0)