aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SafeStack.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2020-11-09 17:52:39 -0800
committerSam Clegg <sbc@chromium.org>2020-11-10 17:58:06 -0800
commit29a3056bb5346d9b38e4dcb13700576efbff9425 (patch)
tree14acd6e42cbfeed08a735c6de6f81c0fe11031e2 /llvm/lib/CodeGen/SafeStack.cpp
parente1eeb026e66c38add2a1f8f1271e1f618c2f7a72 (diff)
downloadllvm-29a3056bb5346d9b38e4dcb13700576efbff9425.zip
llvm-29a3056bb5346d9b38e4dcb13700576efbff9425.tar.gz
llvm-29a3056bb5346d9b38e4dcb13700576efbff9425.tar.bz2
[lld][WebAssembly] Allow references to __tls_base without shared memory
Previously we limited the use of atomics and TLS to programs linked with `--shared-memory`. However, as of https://reviews.llvm.org/D79530 we now allow programs that use atomic to be linked without `--shared-memory`. For this to be useful we also want to all TLS usage in such programs. In this case, since we know we are single threaded we simply include the TLS data as a regular active segment and create an immutable `__tls_base` global that point to the start of this segment. Fixes: https://github.com/emscripten-core/emscripten/issues/12489 Differential Revision: https://reviews.llvm.org/D91115
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
0 files changed, 0 insertions, 0 deletions