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

htcoff.cc File Reference

#include "coff_s.h"
#include "log.h"
#include "htcoff.h"
#include "htcoffhd.h"
#include "htcoffimg.h"
#include "htendian.h"
#include "mzstruct.h"
#include "stream.h"
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

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)
int coff_ofs_is_valid (coff_section_headers *section_headers, dword ofs)

Variables

format_viewer_ifhtcoff_ifs []
format_viewer_if htcoff_if


Function Documentation

int coff_ofs_is_valid coff_section_headers section_headers,
dword  ofs
 

Definition at line 285 of file htcoff.cc.

References coff_ofs_to_rva(), and RVA.

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
 

Initial value:

 {
        htcoff_init,
        0
}

Definition at line 126 of file htcoff.cc.

format_viewer_if* htcoff_ifs[]
 

Initial value:

Definition at line 33 of file htcoff.cc.


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