parent\parent\Common\Compiler\ObjectWriter\WasmRelocatableObjectWriter.cs (18)
226WriteULEB128(linking, LinkingVersion); // version: the version of linking metadata contained in this section.
256WriteULEB128(entries, 0); // flags: a bitfield containing flags for this symbol.
258WriteULEB128(entries, (ulong)_dataSection.GetSegmentIndex(segment)); // index: the index of the data segment.
259WriteULEB128(entries, checked((ulong)definition.Value)); // offset: the offset within the segment.
260WriteULEB128(entries, (ulong)definition.Size); // size: the size of the symbol.
272WriteULEB128(entries, UndefinedSymbol); // flags: a bitfield containing flags for this symbol.
282WriteULEB128(entries, LocalSymbol);
283WriteULEB128(entries, (ulong)fileSectionIndices[section.SectionIndex]);
287WriteULEB128(symbols, (ulong)_linkingSymbolIndices.Count); // count: number of syminfo entries in infos.
295WriteULEB128(segments, (ulong)_dataSection.SegmentCount); // count: number of segment entries in segments.
299WriteULEB128(segments, (ulong)BitOperations.Log2((uint)segment.MemoryAlignment)); // alignment: required segment alignment, encoded as a power of 2.
300WriteULEB128(segments, 0); // flags: a bitfield containing flags for this segment.
332WriteULEB128(entries, flags); // flags: a bitfield containing flags for this symbol.
333WriteULEB128(entries, (ulong)symbol.Index); // index: the index of the Wasm object corresponding to the symbol.
356WriteULEB128(stream, (ulong)name.Length); // name_len: the length of name_data in bytes.
363WriteULEB128(stream, (ulong)payload.Length); // payload_len: size of this subsection in bytes.
466WriteULEB128(payload, checked((ulong)(contentOffset + reloc.Offset))); // offset: offset of the value to rewrite, relative to the section's contents.
468WriteULEB128(payload, (ulong)(type == WasmRelocationType.TypeIndexLeb