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

Afficher le fichier Open project: tgiphil/MOSA-Project Class Usage Examples

Méthodes publiques

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Write32 ( EndianAwareBinaryWriter writer ) : void

Writes the elf header

Write64 ( EndianAwareBinaryWriter writer ) : void

Writes the elf header

Method Details

CreateIdent() public méthode

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.
Résultat void

GetEntrySize() public static méthode

public static GetEntrySize ( LinkerFormatType elfType ) : int
elfType LinkerFormatType
Résultat int

PrintInfo() public méthode

Prints the info.
public PrintInfo ( ) : void
Résultat void

Read32() public méthode

Reads elf header
public Read32 ( EndianAwareBinaryReader reader ) : void
reader EndianAwareBinaryReader The reader.
Résultat void

Write() public méthode

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

Write32() protected méthode

Writes the elf header
protected Write32 ( EndianAwareBinaryWriter writer ) : void
writer EndianAwareBinaryWriter The writer.
Résultat void

Write64() protected méthode

Writes the elf header
protected Write64 ( EndianAwareBinaryWriter writer ) : void
writer EndianAwareBinaryWriter The writer.
Résultat void

Property Details

ElfHeaderSize32 public_oe static_oe property

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

ElfHeaderSize64 public_oe static_oe property

public static ushort ElfHeaderSize64
Résultat 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
Résultat 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
Résultat 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
Résultat byte[]

Machine public_oe property

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

MagicNumber public_oe static_oe property

public static byte[] MagicNumber
Résultat 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
Résultat 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
Résultat 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
Résultat 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
Résultat 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
Résultat int

Type public_oe property

This member identifies the object file type
public FileType,System.IO Type
Résultat System.IO.FileType

Version public_oe property

This member identifies the object file version.
public Version,System Version
Résultat System.Version