[lld] [WebAssembly] Fix issues combining coop threads and PIC (PR #208332)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 22:51:10 PDT 2026
================
@@ -445,12 +445,18 @@ bool InputChunk::generateRelocationCode(raw_ostream &os) const {
continue;
}
- uint64_t offset = getVA(rel.Offset) - getInputSectionOffset();
+ // Calculate the address at which to apply the relocation. Note that PIC TLS
+ // segments are handled slightly differently here because at runtime they're
+ // a relative offset from `__tls_base`.
----------------
sbc100 wrote:
There is already some logic in `DefinedData::getVA` that I think is supposed to handle this. Maybe that should be extended instead of adding a special case here?
https://github.com/llvm/llvm-project/pull/208332
More information about the llvm-commits
mailing list