[lld] [lld][WebAssembly]: Defer __wasm_apply_data_relocs decision to writer… (PR #109249)

YAMAMOTO Takashi via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 17:16:22 PDT 2024


================
@@ -378,7 +378,7 @@ void InputChunk::generateRelocationCode(raw_ostream &os) const {
     uint64_t offset = getVA(rel.Offset) - getInputSectionOffset();
 
     Symbol *sym = file->getSymbol(rel);
-    if (!ctx.isPic && sym->isDefined())
+    if (!ctx.isPic && !sym->hasGOTIndex())
----------------
yamt wrote:

this change is necessary because this function is now called regardless of unresolved policy.


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


More information about the llvm-commits mailing list