protected override void WriteDescriptor(ElfWriter writer) { if (Descriptor != null) { writer.Write(Descriptor); } }
protected override void WriteDescriptor(ElfWriter writer) { if (BuildId != null) { writer.Write(BuildId); } }
protected override void Write(ElfWriter writer) { if (Stream == null) { return; } writer.Write(Stream); }
protected override void WriteDescriptor(ElfWriter writer) { NativeGnuNoteOS nativeGnuNote; writer.Encode(out nativeGnuNote.OS, (uint)OSKind); writer.Encode(out nativeGnuNote.MajorVersion, (uint)MajorVersion); writer.Encode(out nativeGnuNote.MinorVersion, (uint)MinorVersion); writer.Encode(out nativeGnuNote.SubMinorVersion, (uint)SubMinorVersion); writer.Write(nativeGnuNote); }
private void WriteProgramHeader64(ElfWriter writer, ref ElfSegment segment) { var hdr = new ElfNative.Elf64_Phdr(); writer.Encode(out hdr.p_type, segment.Type.Value); writer.Encode(out hdr.p_offset, segment.Offset); writer.Encode(out hdr.p_vaddr, segment.VirtualAddress); writer.Encode(out hdr.p_paddr, segment.PhysicalAddress); writer.Encode(out hdr.p_filesz, segment.Size); writer.Encode(out hdr.p_memsz, segment.SizeInMemory); writer.Encode(out hdr.p_flags, segment.Flags.Value); writer.Encode(out hdr.p_align, segment.Alignment); writer.Write(hdr); }