[lld] [WebAssembly] Export TLS symbols by default on wasip3 (PR #215413)

Alex Crichton via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 10 15:46:51 PDT 2026


================
@@ -1004,6 +1004,9 @@ static void createSyntheticSymbols() {
       ctx.sym.getTLSBase =
           createUndefinedFunction("__wasm_get_tls_base", &getTLSBaseSignature);
       ctx.sym.getTLSBase->markLive();
+      ctx.arg.exportedSymbols.insert(ctx.sym.tlsSize->getName());
+      ctx.arg.exportedSymbols.insert(ctx.sym.tlsAlign->getName());
+      ctx.arg.exportedSymbols.insert(ctx.sym.initTLS->getName());
----------------
alexcrichton wrote:

Ah didn't realize that was a thing, updated to that instead!

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


More information about the llvm-commits mailing list