[PATCH] D102044: [lld][WebAssembly] Disallow exporting of TLS symbols

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 6 20:31:35 PDT 2021


sbc100 created this revision.
Herald added subscribers: wingo, ecnelises, jfb, sunfish, jgravelle-google, dschuff.
sbc100 requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

Cross module TLS is currently not supported by our ABI.  This
change makes explicitly exporting a TLS symbol into an error
and prevents implicit exporting (via --export-all).

See https://github.com/emscripten-core/emscripten/issues/14120


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102044

Files:
  lld/test/wasm/tls-export.s
  lld/wasm/InputChunks.h
  lld/wasm/InputFiles.cpp
  lld/wasm/OutputSegment.h
  lld/wasm/Relocations.cpp
  lld/wasm/Symbols.cpp
  lld/wasm/Symbols.h
  lld/wasm/Writer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102044.343569.patch
Type: text/x-patch
Size: 5584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210507/f589455c/attachment.bin>


More information about the llvm-commits mailing list