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

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

Public Properties

Property Type Description
ElfHeaderSize32 ushort
ElfHeaderSize64 ushort
EntryAddress ulong
Flags uint
Ident byte[]
Machine MachineType
MagicNumber byte[]
ProgramHeaderNumber ushort
ProgramHeaderOffset long
SectionHeaderNumber ushort
SectionHeaderOffset long
SectionHeaderStringIndex int
Type System.IO.FileType
Version System.Version

Public Methods

Method Description
CreateIdent ( IdentClass identClass, IdentData data, byte padding ) : void

Creates the ident.

GetEntrySize ( LinkerFormatType elfType ) : int
PrintInfo ( ) : void

Prints the info.

Read32 ( EndianAwareBinaryReader reader ) : void

Reads elf header

Write ( LinkerFormatType elfType, EndianAwareBinaryWriter writer ) : void

Writes the elf header

Protected Methods

Method Description
Write32 ( EndianAwareBinaryWriter writer ) : void

Writes the elf header

Write64 ( EndianAwareBinaryWriter writer ) : void

Writes the elf header

Method Details

CreateIdent() public method

Creates the ident.
public CreateIdent ( IdentClass identClass, IdentData data, byte padding ) : void
identClass IdentClass The ident class.
data IdentData The data.
padding byte The padding.
return void

GetEntrySize() public static method

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

PrintInfo() public method

Prints the info.
public PrintInfo ( ) : void
return void

Read32() public method

Reads elf header
public Read32 ( EndianAwareBinaryReader reader ) : void
reader EndianAwareBinaryReader The reader.
return void

Write() public method

Writes the elf header
public Write ( LinkerFormatType elfType, EndianAwareBinaryWriter writer ) : void
elfType LinkerFormatType Type of the elf.
writer EndianAwareBinaryWriter The writer.
return void

Write32() protected method

Writes the elf header
protected Write32 ( EndianAwareBinaryWriter writer ) : void
writer EndianAwareBinaryWriter The writer.
return void

Write64() protected method

Writes the elf header
protected Write64 ( EndianAwareBinaryWriter writer ) : void
writer EndianAwareBinaryWriter The writer.
return void

Property Details

ElfHeaderSize32 public_oe static_oe property

This member holds the ELF header's size in bytes.
public static ushort ElfHeaderSize32
return ushort

ElfHeaderSize64 public_oe static_oe property

public static ushort ElfHeaderSize64
return ushort

EntryAddress public_oe property

This member gives the virtual virtualAddress to which the system first transfers control, thus starting the process. If the file has no associated entry point, this member holds zero.
public ulong EntryAddress
return ulong

Flags public_oe property

This member holds processor-specific flags associated with the file. Flag names take the form EF_machine_flag.
public uint Flags
return uint

Ident public_oe property

The initial bytes mark the file as an object file and provide machine-independent data with which to decode and interpret the file's contents.
public byte[] Ident
return byte[]

Machine public_oe property

This member's value specifies the required architecture for an individual file.
public MachineType Machine
return MachineType

MagicNumber public_oe static_oe property

public static byte[] MagicNumber
return byte[]

ProgramHeaderNumber public_oe property

This member holds the number of entries in the program header table. Thus the product of ProgramHeaderEntrySize and ProgramHeaderNumber gives the table's size in bytes. If a file has no program header table, ProgramHeaderNumber holds the value zero.
public ushort ProgramHeaderNumber
return ushort

ProgramHeaderOffset public_oe property

This member holds the program header table's file offset in bytes. If the file has no program header table, this member holds zero.
public long ProgramHeaderOffset
return long

SectionHeaderNumber public_oe property

This member holds the number of entries in the section header table. Thus the product of SectionHeaderEntrySize and SectionHeaderNumber gives the section header table's size in bytes. If a file has no section header table, SectionHeaderNumber holds the value zero.
public ushort SectionHeaderNumber
return ushort

SectionHeaderOffset public_oe property

This member holds the section header table's file offset in bytes. If the file has no section header table, this member holds zero.
public long SectionHeaderOffset
return long

SectionHeaderStringIndex public_oe property

This member holds the section header table index of the entry associated with the section name string table. If the file has no section name string table, this member holds the value SHN_UNDEF. See "Sections" and "String Table" below for more information.
public int SectionHeaderStringIndex
return int

Type public_oe property

This member identifies the object file type
public FileType,System.IO Type
return System.IO.FileType

Version public_oe property

This member identifies the object file version.
public Version,System Version
return System.Version