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

htcoff.h File Reference

#include "formats.h"
#include "coff_s.h"
#include "htcoffhd.h"
#include "htendian.h"

Go to the source code of this file.

Classes

struct  coff_section_headers
class  ht_coff
struct  ht_coff_shared_data

Defines

#define DESC_COFF   "coff - unix common obj file"
#define DESC_COFF_HEADER   "coff/header"
#define DESC_COFF_IMAGE   "coff/image"
#define ATOM_COFF_MACHINES   0xf0450000
#define ATOM_COFF_MACHINES_STR   "f0450000"
#define ATOM_COFF_OPTIONAL_MAGICS   0xf0450001
#define ATOM_COFF_OPTIONAL_MAGICS_STR   "f0450001"
#define ATOM_COFF_OPTIONAL_SIZES   0xf0450002
#define ATOM_COFF_OPTIONAL_SIZES_STR   "f0450002"
#define ATOM_COFF_CHARACTERISTICS   0xf0450003
#define ATOM_COFF_CHARACTERISTICS_STR   "f0450003"
#define ATOM_COFF_SECTION_CHARACTERISTICS   0xf0450004
#define ATOM_COFF_SECTION_CHARACTERISTICS_STR   "f0450004"

Functions

int coff_rva_to_section (coff_section_headers *section_headers, RVA rva, int *section)
int coff_rva_to_ofs (coff_section_headers *section_headers, RVA rva, dword *ofs)
int coff_rva_is_valid (coff_section_headers *section_headers, RVA rva)
int coff_rva_is_physical (coff_section_headers *section_headers, RVA rva)
int coff_ofs_to_rva (coff_section_headers *section_headers, dword ofs, RVA *rva)
int coff_ofs_to_section (coff_section_headers *section_headers, dword ofs, UINT *section)
int coff_ofs_to_rva_and_section (coff_section_headers *section_headers, dword ofs, RVA *rva, UINT *section)

Variables

format_viewer_if htcoff_if


Define Documentation

#define ATOM_COFF_CHARACTERISTICS   0xf0450003
 

Definition at line 42 of file htcoff.h.

#define ATOM_COFF_CHARACTERISTICS_STR   "f0450003"
 

Definition at line 43 of file htcoff.h.

#define ATOM_COFF_MACHINES   0xf0450000
 

Definition at line 33 of file htcoff.h.

#define ATOM_COFF_MACHINES_STR   "f0450000"
 

Definition at line 34 of file htcoff.h.

#define ATOM_COFF_OPTIONAL_MAGICS   0xf0450001
 

Definition at line 36 of file htcoff.h.

#define ATOM_COFF_OPTIONAL_MAGICS_STR   "f0450001"
 

Definition at line 37 of file htcoff.h.

#define ATOM_COFF_OPTIONAL_SIZES   0xf0450002
 

Definition at line 39 of file htcoff.h.

#define ATOM_COFF_OPTIONAL_SIZES_STR   "f0450002"
 

Definition at line 40 of file htcoff.h.

#define ATOM_COFF_SECTION_CHARACTERISTICS   0xf0450004
 

Definition at line 45 of file htcoff.h.

#define ATOM_COFF_SECTION_CHARACTERISTICS_STR   "f0450004"
 

Definition at line 46 of file htcoff.h.

#define DESC_COFF   "coff - unix common obj file"
 

Definition at line 29 of file htcoff.h.

Referenced by ht_coff::init().

#define DESC_COFF_HEADER   "coff/header"
 

Definition at line 30 of file htcoff.h.

#define DESC_COFF_IMAGE   "coff/image"
 

Definition at line 31 of file htcoff.h.


Function Documentation

int coff_ofs_to_rva coff_section_headers section_headers,
dword  ofs,
RVA rva
 

Definition at line 248 of file htcoff.cc.

References coff_section_headers::hdr_ofs, RVA, coff_section_headers::section_count, coff_section_headers::sections, and UINT.

Referenced by coff_ofs_is_valid(), coff_ofs_to_rva_and_section(), and CoffAnalyser::fileofsToAddress().

int coff_ofs_to_rva_and_section coff_section_headers section_headers,
dword  ofs,
RVA rva,
UINT section
 

Definition at line 276 of file htcoff.cc.

References coff_ofs_to_rva(), coff_ofs_to_section(), RVA, and UINT.

int coff_ofs_to_section coff_section_headers section_headers,
dword  ofs,
UINT section
 

Definition at line 262 of file htcoff.cc.

References coff_section_headers::hdr_ofs, coff_section_headers::section_count, coff_section_headers::sections, and UINT.

Referenced by coff_ofs_to_rva_and_section().

int coff_rva_is_physical coff_section_headers section_headers,
RVA  rva
 

Definition at line 231 of file htcoff.cc.

References RVA, coff_section_headers::section_count, coff_section_headers::sections, and UINT.

Referenced by CoffAnalyser::validAddress().

int coff_rva_is_valid coff_section_headers section_headers,
RVA  rva
 

Definition at line 219 of file htcoff.cc.

References RVA, coff_section_headers::section_count, coff_section_headers::sections, and UINT.

Referenced by CoffAnalyser::getSegmentNameByAddress().

int coff_rva_to_ofs coff_section_headers section_headers,
RVA  rva,
dword *  ofs
 

Definition at line 205 of file htcoff.cc.

References coff_section_headers::hdr_ofs, RVA, coff_section_headers::section_count, coff_section_headers::sections, and UINT.

Referenced by CoffAnalyser::addressToFileofs().

int coff_rva_to_section coff_section_headers section_headers,
RVA  rva,
int *  section
 

Definition at line 192 of file htcoff.cc.

References RVA, coff_section_headers::section_count, coff_section_headers::sections, and UINT.

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


Variable Documentation

format_viewer_if htcoff_if
 

Definition at line 48 of file htcoff.h.


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