C# Class Mosa.Compiler.Linker.Elf.SectionHeaderEntry

Datei anzeigen Open project: tgiphil/MOSA-Project Class Usage Examples

Public Properties

Property Type Description
Address ulong
AddressAlignment ulong
EntrySize ulong
EntrySize32 ushort
EntrySize64 ushort
Flags SectionAttribute
Info int
Link int
Name uint
Offset ulong
Size ulong
Type SectionType

Public Methods

Method Description
GetEntrySize ( LinkerFormatType elfType ) : uint
Write ( LinkerFormatType elfType, BinaryWriter writer ) : void

Writes the section header

Protected Methods

Method Description
Write32 ( BinaryWriter writer ) : void

Writes the section header

Write64 ( BinaryWriter writer ) : void

Writes the section header

Method Details

GetEntrySize() public static method

public static GetEntrySize ( LinkerFormatType elfType ) : uint
elfType LinkerFormatType
return uint

Write() public method

Writes the section header
public Write ( LinkerFormatType elfType, BinaryWriter writer ) : void
elfType LinkerFormatType Type of the elf.
writer System.IO.BinaryWriter The writer.
return void

Write32() protected method

Writes the section header
protected Write32 ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter The writer.
return void

Write64() protected method

Writes the section header
protected Write64 ( BinaryWriter writer ) : void
writer System.IO.BinaryWriter The writer.
return void

Property Details

Address public_oe property

If the section will appear in the memory image of a process, this member gives the virtualAddress at which the section's first byte should reside. Otherwise, the member contains 0.
public ulong Address
return ulong

AddressAlignment public_oe property

Some sections have alignment constraints. For example, if a section holds a doubleword, the system must ensure doubleword alignment for the entire section. That is, the value of sh_addr must be congruent to 0, modulo the value of sh_addralign. Currently, only 0 and positive integral powers of two are allowed. Values 0 and 1 mean the section has no alignment constraints.
public ulong AddressAlignment
return ulong

EntrySize public_oe property

Some sections hold a table of fixed-size entries, such as a symbol table. For such a section, this member gives the size in bytes of each entry. The member contains 0 if the section does not hold a table of fixed-size entries.
public ulong EntrySize
return ulong

EntrySize32 public_oe static_oe property

This member holds a section header's size in bytes. A section header is one entry in the section header table; all entries are the same size.
public static ushort EntrySize32
return ushort

EntrySize64 public_oe static_oe property

public static ushort EntrySize64
return ushort

Flags public_oe property

Sections support 1-bit flags that describe miscellaneous attributes.
public SectionAttribute Flags
return SectionAttribute

Info public_oe property

This member holds extra information, whose interpretation depends on the section type.
public int Info
return int

Link public_oe property

This member holds a section header table index link, whose interpretation depends on the section type.
public int Link
return int

Name public_oe property

This member specifies the name of the section. Its value is an index into the section header string table section , giving the location of a null-terminated string.
public uint Name
return uint

Offset public_oe property

This member's value gives the byte offset from the beginning of the file to the first byte in the section. One section type, NoBits,occupies no space in the file, and its Offset member locates the conceptual placement in the file.
public ulong Offset
return ulong

Size public_oe property

public ulong Size
return ulong

Type public_oe property

This member categorizes the section's contents and semantics. Section types and their descriptions appear below.
public SectionType Type
return SectionType