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

htcoffhd.cc File Reference

#include "htatom.h"
#include "htcoff.h"
#include "htcoffhd.h"
#include "httag.h"
#include "htstring.h"
#include "formats.h"
#include "snprintf.h"
#include <string.h>

Go to the source code of this file.

Variables

int_hash coff_machines []
ht_tag_flags_s coff_characteristics []
ht_tag_flags_s coff_section_characteristics []
ht_mask_ptable coffheader []
ht_mask_ptable coff32header []
ht_mask_ptable xcoff32header []
ht_mask_ptable coff_section []
format_viewer_if htcoffheader_if


Variable Documentation

ht_mask_ptable coff32header[]
 

Initial value:

 {
        {"optional magic",              STATICTAG_EDIT_WORD_VE("00000014")" "STATICTAG_DESC_WORD_VE("00000014", ATOM_COFF_OPTIONAL_MAGICS_STR)},
        {"major linker version",        STATICTAG_EDIT_BYTE("00000016")},
        {"minor linker version",        STATICTAG_EDIT_BYTE("00000017")},
        {"size of code",                STATICTAG_EDIT_DWORD_VE("00000018")},
        {"size of data",                STATICTAG_EDIT_DWORD_VE("0000001c")},
        {"size of bss",                 STATICTAG_EDIT_DWORD_VE("00000020")},
        {"entry point",                 STATICTAG_EDIT_DWORD_VE("00000024")},
        {"code base",                   STATICTAG_EDIT_DWORD_VE("00000028")},
        {"data base",                   STATICTAG_EDIT_DWORD_VE("0000002c")},
        {0, 0}
}

Definition at line 144 of file htcoffhd.cc.

ht_tag_flags_s coff_characteristics[]
 

Initial value:

{
        {-1, "COFF - file characteristics"},
        {0,  "[00] relocations stripped"},
        {1,  "[01] file is executable"},
        {2,  "[02] line numbers stripped"},
        {3,  "[03] local symbols stripped"},
        {4,  "[04] aggressively trim working set"},
        {5,  "[05] * reserved"},
        {6,  "[06] * reserved"},
        {7,  "[07] low bytes of machine word are reversed"},
        {8,  "[08] 32 bit machine"},
        {9,  "[09] debugging information stripped"},
        {10, "[10] run from swap if image on removable media"},
        {11, "[11] run from swap if image is on net"},
        {12, "[12] system file"},
        {13, "[13] file is dynamic link library (dll)"},
        {14, "[14] single processor (UP) only"},
        {15, "[15] high bytes of machine word are reversed"},
        {0, 0}
}

Definition at line 72 of file htcoffhd.cc.

int_hash coff_machines[]
 

Initial value:

{

        {COFF_MACHINE_I386, "Intel 386"},
        {COFF_MACHINE_I486, "Intel 486"},
        {COFF_MACHINE_I586, "Intel 586"},
        {COFF_MACHINE_R3000BE, "R3000(be)"},
        {COFF_MACHINE_R3000, "R3000"},
        {COFF_MACHINE_R4000, "R4000"},
        {COFF_MACHINE_R10000, "R10000"},
        {COFF_MACHINE_ALPHA, "Alpha AXP"},
        {COFF_MACHINE_SH3, "Hitachi SH3"},
        {COFF_MACHINE_SH4, "Hitachi SH4"},
        {COFF_MACHINE_ARM, "ARM"},
        {COFF_MACHINE_THUMB, "THUMB"},
        {COFF_MACHINE_POWERPC_LE, "Power PC (little-endian)"},
        {COFF_MACHINE_POWERPC_BE, "Power PC (big-endian)"},
        {COFF_MACHINE_IA64, "Intel IA64"},
        {COFF_MACHINE_MIPS16, "MIPS16"},
        {COFF_MACHINE_68k, "Motorola 68k"},
        {COFF_MACHINE_ALPHA_AXP_64, "Alpha AXP 64"},
        {COFF_MACHINE_MIPSf, "MIPSf"},
        {COFF_MACHINE_MIPS16f, "MIPS16f"},
        {COFF_MACHINE_AMD_HAMMER, "x86-64 (AMD Opteron)"},
        {0, 0}
}

Definition at line 31 of file htcoffhd.cc.

ht_mask_ptable coff_section[]
 

Initial value:

 {
        {"name",                        STATICTAG_EDIT_CHAR("00000000") STATICTAG_EDIT_CHAR("00000001") STATICTAG_EDIT_CHAR("00000002") STATICTAG_EDIT_CHAR("00000003") STATICTAG_EDIT_CHAR("00000004") STATICTAG_EDIT_CHAR("00000005") STATICTAG_EDIT_CHAR("00000006") STATICTAG_EDIT_CHAR("00000007")},
        {"virt. size OR phys. address",         STATICTAG_EDIT_DWORD_VE("00000008")},
        {"virtual address",             STATICTAG_EDIT_DWORD_VE("0000000c")},
        {"size",                        STATICTAG_EDIT_DWORD_VE("00000010")},
        {"offset",                      STATICTAG_EDIT_DWORD_VE("00000014")},
        {"relocation table offset",     STATICTAG_EDIT_DWORD_VE("00000018")},
        {"line number table offset",    STATICTAG_EDIT_DWORD_VE("0000001c")},
        {"relocation count",            STATICTAG_EDIT_WORD_VE("00000020")},
        {"line number count",           STATICTAG_EDIT_WORD_VE("00000022")},
        {"characteristics",             STATICTAG_EDIT_DWORD_VE("00000024")" "STATICTAG_FLAGS("00000024", ATOM_COFF_SECTION_CHARACTERISTICS_STR)},
        {0, 0}
}

Definition at line 187 of file htcoffhd.cc.

ht_tag_flags_s coff_section_characteristics[]
 

Definition at line 94 of file htcoffhd.cc.

ht_mask_ptable coffheader[]
 

Initial value:

{
        {"machine",                     STATICTAG_EDIT_WORD_VE("00000000")" "STATICTAG_DESC_WORD_VE("00000000", ATOM_COFF_MACHINES_STR)},
        {"number of sections",          STATICTAG_EDIT_WORD_VE("00000002")},
        {"time-date stamp",             STATICTAG_EDIT_TIME("00000004")},
        {"pointer to symbol table",     STATICTAG_EDIT_DWORD_VE("00000008")},
        {"number of symbols",           STATICTAG_EDIT_DWORD_VE("0000000c")},
        {"size of optional header",     STATICTAG_EDIT_WORD_VE("00000010")" "STATICTAG_DESC_WORD_VE("00000010", ATOM_COFF_OPTIONAL_SIZES_STR)},
        {"characteristics",             STATICTAG_EDIT_WORD_VE("00000012")" "STATICTAG_FLAGS("00000012", ATOM_COFF_CHARACTERISTICS_STR)},
        {0, 0}
}

Definition at line 132 of file htcoffhd.cc.

format_viewer_if htcoffheader_if
 

Initial value:

 {
        htcoffheader_init,
        0
}

Definition at line 278 of file htcoffhd.cc.

ht_mask_ptable xcoff32header[]
 

Initial value:

 {
        {"optional magic",              STATICTAG_EDIT_WORD_VE("00000014")" "STATICTAG_DESC_WORD_VE("00000014", ATOM_COFF_OPTIONAL_MAGICS_STR)},
        {"major linker version",        STATICTAG_EDIT_BYTE("00000016")},
        {"minor linker version",        STATICTAG_EDIT_BYTE("00000017")},
        {"size of code",                STATICTAG_EDIT_DWORD_VE("00000018")},
        {"size of data",                STATICTAG_EDIT_DWORD_VE("0000001c")},
        {"size of bss",                 STATICTAG_EDIT_DWORD_VE("00000020")},
        {"address of entrypoint",       STATICTAG_EDIT_DWORD_VE("00000024")},
        {"code base",                   STATICTAG_EDIT_DWORD_VE("00000028")},
        {"data base",                   STATICTAG_EDIT_DWORD_VE("0000002c")},
        {"address of TOC anchor",       STATICTAG_EDIT_DWORD_VE("00000030")},
        {"section of entrypoint",       STATICTAG_EDIT_WORD_VE("00000034")},
        {"section of .text",            STATICTAG_EDIT_WORD_VE("00000036")},
        {"section of .data",            STATICTAG_EDIT_WORD_VE("00000038")},
        {"section of TOC",              STATICTAG_EDIT_WORD_VE("0000003a")},
        {"section of loader data",      STATICTAG_EDIT_WORD_VE("0000003c")},
        {"section of .bss",             STATICTAG_EDIT_WORD_VE("0000003e")},
        {"max. alignment for .text",    STATICTAG_EDIT_WORD_VE("00000040")},
        {"max. alignment for .data",    STATICTAG_EDIT_WORD_VE("00000042")},
        {"module type field",           STATICTAG_EDIT_WORD_VE("00000044")},
        {"cpu type",                    STATICTAG_EDIT_BYTE("00000046")},
        {"cpu type (reserved)",         STATICTAG_EDIT_BYTE("00000047")},
        {"max. stack size",             STATICTAG_EDIT_DWORD_VE("00000048")},
        {"max. data size",              STATICTAG_EDIT_DWORD_VE("0000004c")},
        {"reserved for debuggers",      STATICTAG_EDIT_DWORD_VE("00000050")},
        {"reserved field",              STATICTAG_EDIT_DWORD_VE("00000054")},
        {"reserved field",              STATICTAG_EDIT_DWORD_VE("00000058")},
        {0, 0}
}

Definition at line 157 of file htcoffhd.cc.


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