[lld] [lld][WebAssembly] Fix relocation of Wasm table index with GOT access (PR #104043)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 12:49:36 PDT 2024


================
@@ -0,0 +1,27 @@
+# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
+
+# RUN: not wasm-ld --experimental-pic -shared %t.o -o /dev/null 2>&1 | \
+# RUN:   FileCheck -check-prefix=ERRUND %s
+# ERRUND: error: {{.*}}.o: relocation R_WASM_TABLE_INDEX_REL_SLEB cannot be used against an undefined symbol `external_func`
----------------
sbc100 wrote:

Maybe just using `CHECK:` here and then remove all the `-check-prefix=ERRUND` aguments?  (since its the only prefix used in this file).

https://github.com/llvm/llvm-project/pull/104043


More information about the llvm-commits mailing list