Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Elf64Section"/> class.
 /// </summary>
 /// <param name="kind">The kind of the section.</param>
 /// <param name="name">The name.</param>
 /// <param name="virtualAddress">The virtualAddress.</param>
 public Elf64Section(Mosa.Runtime.Linker.SectionKind kind, string name, IntPtr virtualAddress)
     : base(kind, name, virtualAddress)
 {
     header = new Elf64SectionHeader();
     header.Name = Elf64StringTableSection.AddString(name);
     sectionStream = new System.IO.MemoryStream();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Elf64Section"/> class.
 /// </summary>
 /// <param name="kind">The kind of the section.</param>
 /// <param name="name">The name.</param>
 /// <param name="virtualAddress">The virtualAddress.</param>
 public Elf64Section(Mosa.Runtime.Linker.SectionKind kind, string name, IntPtr virtualAddress)
     : base(kind, name, virtualAddress)
 {
     header        = new Elf64SectionHeader();
     header.Name   = Elf64StringTableSection.AddString(name);
     sectionStream = new System.IO.MemoryStream();
 }