[all-commits] [llvm/llvm-project] 07b6ae: [lld][WebAssembly] Fix for TLS + --relocatable
Sam Clegg via All-commits
all-commits at lists.llvm.org
Wed Jan 13 07:55:37 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 07b6aeb5685fa6474cbeae797ebc5ea1f17da0f7
https://github.com/llvm/llvm-project/commit/07b6aeb5685fa6474cbeae797ebc5ea1f17da0f7
Author: Sam Clegg <sbc at chromium.org>
Date: 2021-01-13 (Wed, 13 Jan 2021)
Changed paths:
M lld/test/wasm/tls-no-shared.s
M lld/test/wasm/tls.s
M lld/wasm/Driver.cpp
M lld/wasm/InputFiles.cpp
M lld/wasm/Writer.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list