C# Класс Mosa.Compiler.Linker.Elf.ElfHeader

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
Write32 ( EndianAwareBinaryWriter writer ) : void

Writes the elf header

Write64 ( EndianAwareBinaryWriter writer ) : void

Writes the elf header

Описание методов

CreateIdent() публичный Метод

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.
Результат void

GetEntrySize() публичный статический Метод

public static GetEntrySize ( LinkerFormatType elfType ) : int
elfType LinkerFormatType
Результат int

PrintInfo() публичный Метод

Prints the info.
public PrintInfo ( ) : void
Результат void

Read32() публичный Метод

Reads elf header
public Read32 ( EndianAwareBinaryReader reader ) : void
reader EndianAwareBinaryReader The reader.
Результат void

Write() публичный Метод

Writes the elf header
public Write ( LinkerFormatType elfType, EndianAwareBinaryWriter writer ) : void
elfType LinkerFormatType Type of the elf.
writer EndianAwareBinaryWriter The writer.
Результат void

Write32() защищенный Метод

Writes the elf header
protected Write32 ( EndianAwareBinaryWriter writer ) : void
writer EndianAwareBinaryWriter The writer.
Результат void

Write64() защищенный Метод

Writes the elf header
protected Write64 ( EndianAwareBinaryWriter writer ) : void
writer EndianAwareBinaryWriter The writer.
Результат void

Описание свойств

ElfHeaderSize32 публичное статическое свойство

This member holds the ELF header's size in bytes.
public static ushort ElfHeaderSize32
Результат ushort

ElfHeaderSize64 публичное статическое свойство

public static ushort ElfHeaderSize64
Результат ushort

EntryAddress публичное свойство

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
Результат ulong

Flags публичное свойство

This member holds processor-specific flags associated with the file. Flag names take the form EF_machine_flag.
public uint Flags
Результат uint

Ident публичное свойство

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
Результат byte[]

Machine публичное свойство

This member's value specifies the required architecture for an individual file.
public MachineType Machine
Результат MachineType

MagicNumber публичное статическое свойство

public static byte[] MagicNumber
Результат byte[]

ProgramHeaderNumber публичное свойство

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
Результат ushort

ProgramHeaderOffset публичное свойство

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
Результат long

SectionHeaderNumber публичное свойство

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
Результат ushort

SectionHeaderOffset публичное свойство

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
Результат long

SectionHeaderStringIndex публичное свойство

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
Результат int

Type публичное свойство

This member identifies the object file type
public FileType,System.IO Type
Результат System.IO.FileType

Version публичное свойство

This member identifies the object file version.
public Version,System Version
Результат System.Version