diff options
author | Sam Clegg <sbc@chromium.org> | 2024-11-19 14:00:37 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-19 14:00:37 -0800 |
commit | 1c1fbf51b5ec9657e5da7fa94ee892273255544a (patch) | |
tree | ec23012b68bb6ac7076bccd89e26e483f5a2ef99 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 1073e9049bb2483a6ff554cbc5da1c2fd0b9d75d (diff) | |
download | llvm-1c1fbf51b5ec9657e5da7fa94ee892273255544a.zip llvm-1c1fbf51b5ec9657e5da7fa94ee892273255544a.tar.gz llvm-1c1fbf51b5ec9657e5da7fa94ee892273255544a.tar.bz2 |
[lld][WebAssembly] Fix TLS-relative relocations when linking without shared memory (#116136)
TLS-relative relocations always need to be relative the TLS section
since they get added to `__tls_base` at runtime.
Without this change the tls base address was effectively being added to
the final value twice in this case.
This only effects code the is built with `-pthread` but linked without
shared memory (i.e. without threads).
Fixes: https://github.com/emscripten-core/emscripten/issues/22880
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions