xbmc
Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
CoffLoader Class Reference
Inheritance diagram for CoffLoader:
Inheritance graph
[legend]
Collaboration diagram for CoffLoader:
Collaboration graph
[legend]

Public Member Functions

int ParseCoff (FILE *fp)
 
int ParseHeaders (void *hModule)
 

Public Attributes

void * hModule
 
COFF_FileHeader_tCoffFileHeader
 
OptionHeader_tOptionHeader
 
WindowsHeader_tWindowsHeader
 
Image_Data_Directory_tDirectory
 
SectionHeader_tSectionHeader
 

Protected Member Functions

void PrintStringTable (void)
 
void PrintSymbolTable (void)
 
int LoadCoffHModule (FILE *fp)
 
int LoadSymTable (FILE *fp)
 
int LoadStringTable (FILE *fp)
 
int LoadSections (FILE *fp)
 
int RVA2Section (unsigned long RVA)
 
void * RVA2Data (unsigned long RVA)
 
unsigned long Data2RVA (void *address)
 
char * GetStringTblIndex (int index)
 
char * GetStringTblOff (int Offset)
 
char * GetSymbolName (SymbolTable_t *sym)
 
char * GetSymbolName (int index)
 
void PerformFixups (void)
 

Static Protected Member Functions

static void PrintFileHeader (COFF_FileHeader_t *FileHeader)
 
static void PrintWindowsHeader (WindowsHeader_t *WinHdr)
 
static void PrintOptionHeader (OptionHeader_t *OptHdr)
 
static void PrintSection (SectionHeader_t *ScnHdr, const char *data)
 

Protected Attributes

SymbolTable_tSymTable
 
char * StringTable
 
char ** SectionData
 
unsigned long EntryAddress
 
int NumberOfSymbols
 
int SizeOfStringTable
 
int NumOfDirectories
 
int NumOfSections
 
int FileHeaderOffset
 

The documentation for this class was generated from the following files: