parent\parent\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (18)
208WriteULEB128(linking, LinkingVersion); // version: the version of linking metadata contained in this section.
238WriteULEB128(entries, 0); // flags: a bitfield containing flags for this symbol.
240WriteULEB128(entries, (ulong)_dataSection.GetSegmentIndex(segment)); // index: the index of the data segment.
241WriteULEB128(entries, checked((ulong)definition.Value)); // offset: the offset within the segment.
242WriteULEB128(entries, (ulong)definition.Size); // size: the size of the symbol.
254WriteULEB128(entries, UndefinedSymbol); // flags: a bitfield containing flags for this symbol.
264WriteULEB128(entries, LocalSymbol);
265WriteULEB128(entries, (ulong)fileSectionIndices[section.SectionIndex]);
269WriteULEB128(symbols, (ulong)_linkingSymbolIndices.Count); // count: number of syminfo entries in infos.
277WriteULEB128(segments, (ulong)_dataSection.SegmentCount); // count: number of segment entries in segments.
281WriteULEB128(segments, (ulong)BitOperations.Log2((uint)segment.MemoryAlignment)); // alignment: required segment alignment, encoded as a power of 2.
282WriteULEB128(segments, 0); // flags: a bitfield containing flags for this segment.
314WriteULEB128(entries, flags); // flags: a bitfield containing flags for this symbol.
315WriteULEB128(entries, (ulong)symbol.Index); // index: the index of the Wasm object corresponding to the symbol.
338WriteULEB128(stream, (ulong)name.Length); // name_len: the length of name_data in bytes.
345WriteULEB128(stream, (ulong)payload.Length); // payload_len: size of this subsection in bytes.
435WriteULEB128(payload, checked((ulong)(contentOffset + reloc.Offset))); // offset: offset of the value to rewrite, relative to the section's contents.
437WriteULEB128(payload, (ulong)(type == WasmRelocationType.TypeIndexLeb