[lld] [lld][WebAssembly] Fix TLS-relative relocations when linking without shared memory (PR #116136)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 18 10:16:16 PST 2024
================
@@ -122,16 +122,16 @@ void scanRelocations(InputChunk *chunk) {
" cannot be used against an undefined symbol `" + toString(*sym) +
"`");
}
+ if (!sym->isTLS()) {
+ error(toString(file) + ": relocation " +
+ relocTypeToString(reloc.Type) +
+ " cannot be used against non-TLS symbol `" + toString(*sym) +
+ "`");
+ }
// In single-threaded builds TLS is lowered away and TLS data can be
----------------
sbc100 wrote:
Actually this change is kind of separate so I just reverted it for now.
https://github.com/llvm/llvm-project/pull/116136
More information about the llvm-commits
mailing list