diff options
author | Sam Clegg <sbc@chromium.org> | 2020-12-18 10:02:29 -0800 |
---|---|---|
committer | Sam Clegg <sbc@chromium.org> | 2021-01-13 07:49:39 -0800 |
commit | 07b6aeb5685fa6474cbeae797ebc5ea1f17da0f7 (patch) | |
tree | b718dc472b0b28d38d31d5e89c1b89141f5d5582 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 4e8e888905a4258932dcb593a5531a6329cc821a (diff) | |
download | llvm-07b6aeb5685fa6474cbeae797ebc5ea1f17da0f7.zip llvm-07b6aeb5685fa6474cbeae797ebc5ea1f17da0f7.tar.gz llvm-07b6aeb5685fa6474cbeae797ebc5ea1f17da0f7.tar.bz2 |
[lld][WebAssembly] Fix for TLS + --relocatable
When running in `-r/--relocatable` we output relocations but the
new TLS relocations type was missing from `ObjFile::calcNewAddend`
causing this combination of inputs/flags to crash the linker.
Also avoid creating tls variables in relocatable mode. These variables
are only needed when linking final executables.
Fixes: https://github.com/emscripten-core/emscripten/issues/12934
Fixes: PR48506
Differential Revision: https://reviews.llvm.org/D93554
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions