[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
Wed Aug 21 10:04:07 PDT 2024


================
@@ -0,0 +1,27 @@
+# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
----------------
sbc100 wrote:

Were the `MBREL`/`TBREL` relocations generated by LLVM?   IIRC those should only be generated for symbols local to a given object file... but perhaps its actually DSO-local which is the deciding factor here.

Are you able to repoduce this issue with C code?  If not then perhaps with llvm bitcode?  Could you share an example that reproduces the issue?

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


More information about the llvm-commits mailing list