[lld] [lld][WebAssembly] Do not relocate ABSOLUTE symbols (PR #153763)

YAMAMOTO Takashi via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 17 17:06:10 PDT 2025


================
@@ -442,6 +442,8 @@ void GlobalSection::generateRelocationCode(raw_ostream &os, bool TLS) const {
   for (const Symbol *sym : internalGotSymbols) {
     if (TLS != sym->isTLS())
       continue;
+    if (sym->flags & WASM_SYMBOL_ABSOLUTE)
----------------
yamt wrote:

why? just because it can be slightly cheaper?

https://github.com/llvm/llvm-project/pull/153763


More information about the llvm-commits mailing list