[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:30 PDT 2024


================
@@ -1467,15 +1469,29 @@ void Writer::createApplyDataRelocationsFunction() {
   {
     raw_string_ostream os(bodyContent);
     writeUleb128(os, 0, "num locals");
+    uint64_t off = os.tell();
     for (const OutputSegment *seg : segments)
       if (!config->sharedMemory || !seg->isTLS())
         for (const InputChunk *inSeg : seg->inputSegments)
           inSeg->generateRelocationCode(os);
----------------
yamt wrote:

done

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


More information about the llvm-commits mailing list