C# 클래스 Mosa.Compiler.Linker.Elf.ElfHeader

파일 보기 프로젝트 열기: tgiphil/MOSA-Project 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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