Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

htpef.cc File Reference

#include "pefstruc.h"
#include "log.h"
#include "htpef.h"
#include "htpefhd.h"
#include "htpefimp.h"
#include "htpefimg.h"
#include "htendian.h"
#include "stream.h"
#include "tools.h"
#include <stdlib.h>
#include "relfile.h"

Go to the source code of this file.

Classes

class  ht_pef_reloc_entry
class  ht_pef_reloc_file

Defines

#define RELOC_BASE   0x10000000
#define RELOC_STEPPING   0x100000
#define RELOC_LIMIT   0xffffffff

Functions

bool pef_phys_and_mem_section (PEF_SECTION_HEADER *s)
bool pef_valid_section (PEF_SECTION_HEADER *s)
bool pef_addr_to_ofs (pef_section_headers *section_headers, PEFAddress addr, dword *ofs)
bool pef_addr_to_section (pef_section_headers *section_headers, PEFAddress addr, int *section)
bool pef_addr_is_valid (pef_section_headers *section_headers, PEFAddress addr)
bool pef_ofs_to_addr (pef_section_headers *section_headers, dword ofs, PEFAddress *addr)
bool pef_ofs_to_section (pef_section_headers *section_headers, dword ofs, int *section)

Variables

format_viewer_ifhtpef_ifs []
format_viewer_if htpef_if


Define Documentation

#define RELOC_BASE   0x10000000
 

Definition at line 141 of file htpef.cc.

#define RELOC_LIMIT   0xffffffff
 

Definition at line 143 of file htpef.cc.

#define RELOC_STEPPING   0x100000
 

Definition at line 142 of file htpef.cc.


Function Documentation

bool pef_addr_is_valid pef_section_headers section_headers,
PEFAddress  addr
 

Definition at line 205 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_valid_section(), pef_section_headers::sheaders, and UINT.

bool pef_addr_to_ofs pef_section_headers section_headers,
PEFAddress  addr,
dword *  ofs
 

Definition at line 177 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_phys_and_mem_section(), pef_section_headers::sheaders, and UINT.

Referenced by PEFAnalyser::addressToFileofs().

bool pef_addr_to_section pef_section_headers section_headers,
PEFAddress  addr,
int *  section
 

Definition at line 191 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_valid_section(), pef_section_headers::sheaders, and UINT.

Referenced by PEFAnalyser::getSegmentNameByAddress(), and PEFAnalyser::validAddress().

bool pef_ofs_to_addr pef_section_headers section_headers,
dword  ofs,
PEFAddress addr
 

Definition at line 222 of file htpef.cc.

References PEFAddress::a32, pef_section_headers::count, pef_phys_and_mem_section(), pef_section_headers::sheaders, and UINT.

Referenced by PEFAnalyser::fileofsToAddress().

bool pef_ofs_to_section pef_section_headers section_headers,
dword  ofs,
int *  section
 

Definition at line 236 of file htpef.cc.

References pef_section_headers::count, pef_valid_section(), pef_section_headers::sheaders, and UINT.

bool pef_phys_and_mem_section PEF_SECTION_HEADER s  ) 
 

Definition at line 167 of file htpef.cc.

Referenced by htpefimage_init(), pef_addr_to_ofs(), and pef_ofs_to_addr().

bool pef_valid_section PEF_SECTION_HEADER s  ) 
 

Definition at line 172 of file htpef.cc.

Referenced by pef_addr_is_valid(), pef_addr_to_section(), and pef_ofs_to_section().


Variable Documentation

format_viewer_if htpef_if
 

Initial value:

 {
        htpef_init,
        0
}

Definition at line 58 of file htpef.cc.

format_viewer_if* htpef_ifs[]
 

Initial value:

Definition at line 33 of file htpef.cc.


Generated on Fri May 7 21:15:49 2004 by doxygen 1.3.5