[lld] [lld][WebAssembly] Fix relocation of Wasm table index with GOT access (PR #104043)
Luc Blaeser via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 20 02:06:53 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`
----------------
luc-blaeser wrote:
Thank you for the suggestion. I adjusted this.
https://github.com/llvm/llvm-project/pull/104043
More information about the llvm-commits
mailing list