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

elfstruc.h File Reference

#include "global.h"

Go to the source code of this file.

Classes

struct  ELF_HEADER
struct  ELF_HEADER32
struct  ELF_HEADER64
struct  ELF_PROGRAM_HEADER32
struct  ELF_PROGRAM_HEADER64
struct  ELF_REL32
struct  ELF_REL64
struct  ELF_RELA32
struct  ELF_RELA64
struct  ELF_SECTION_HEADER32
struct  ELF_SECTION_HEADER64
struct  ELF_SYMBOL32
struct  ELF_SYMBOL64
struct  ELFAddress

Defines

#define ELF_EI_MAG0   0
#define ELF_EI_MAG1   1
#define ELF_EI_MAG2   2
#define ELF_EI_MAG3   3
#define ELF_EI_CLASS   4
#define ELF_EI_DATA   5
#define ELF_EI_VERSION   6
#define ELF_EI_OSABI   7
#define ELF_EI_ABIVERSION   8
#define ELF_EI_PAD   9
#define EI_NIDENT   16
#define ELFMAG0   0x7f
#define ELFMAG1   'E'
#define ELFMAG2   'L'
#define ELFMAG3   'F'
#define ELFCLASSNONE   0
#define ELFCLASS32   1
#define ELFCLASS64   2
#define ELFDATANONE   0
#define ELFDATA2LSB   1
#define ELFDATA2MSB   2
#define ELFOSABI_SYSV   0
#define ELFOSABI_HPUX   1
#define ELFOSABI_NETBSD   2
#define ELFOSABI_LINUX   3
#define ELFOSABI_HURD   4
#define ELFOSABI_86OPEN   5
#define ELFOSABI_SOLARIS   6
#define ELFOSABI_MONTEREY   7
#define ELFOSABI_IRIX   8
#define ELFOSABI_FREEBSD   9
#define ELFOSABI_TRU64   10
#define ELFOSABI_MODESTO   11
#define ELFOSABI_OPENBSD   12
#define ELFOSABI_ARM   97
#define ELFOSABI_STANDALONE   255
#define ELF_ET_NONE   0
#define ELF_ET_REL   1
#define ELF_ET_EXEC   2
#define ELF_ET_DYN   3
#define ELF_ET_CORE   4
#define ELF_ET_LOOS   0xFE00
#define ELF_ET_HIOS   0xFEFF
#define ELF_ET_LOPROC   0xFF00
#define ELF_ET_HIPROC   0xFFFF
#define ELF_EM_NONE   0
#define ELF_EM_M32   1
#define ELF_EM_SPARC   2
#define ELF_EM_386   3
#define ELF_EM_68K   4
#define ELF_EM_88K   5
#define ELF_EM_486   6
#define ELF_EM_860   7
#define ELF_EM_MIPS   8
#define ELF_EM_S370   9
#define ELF_EM_MIPS_RS4_BE   10
#define ELF_EM_MIPS_RS3_LE   10
#define ELF_EM_PARISC   15
#define ELF_EM_VPP550   17
#define ELF_EM_SPARC32PLUS   18
#define ELF_EM_960   19
#define ELF_EM_PPC   20
#define ELF_EM_PPC64   21
#define ELF_EM_V800   36
#define ELF_EM_FR20   37
#define ELF_EM_RH32   38
#define ELF_EM_MCORE   39
#define ELF_EM_RCE   39
#define ELF_EM_ARM   40
#define ELF_EM_OLD_ALPHA   41
#define ELF_EM_SH   42
#define ELF_EM_SPARCV9   43
#define ELF_EM_TRICORE   44
#define ELF_EM_ARC   45
#define ELF_EM_H8_300   46
#define ELF_EM_H8_300H   47
#define ELF_EM_H8S   48
#define ELF_EM_H8_500   49
#define ELF_EM_IA_64   50
#define ELF_EM_MIPS_X   51
#define ELF_EM_COLDFIRE   52
#define ELF_EM_68HC12   53
#define ELF_EM_MMA   54
#define ELF_EM_PCP   55
#define ELF_EM_NCPU   56
#define ELF_EM_NDR1   57
#define ELF_EM_STARCORE   58
#define ELF_EM_ME16   59
#define ELF_EM_ST100   60
#define ELF_EM_TINYJ   61
#define ELF_EM_X86_64   62
#define ELF_EM_FX66   66
#define ELF_EM_ST9PLUS   67
#define ELF_EM_ST7   68
#define ELF_EM_68HC16   69
#define ELF_EM_68HC11   70
#define ELF_EM_68HC08   71
#define ELF_EM_68HC05   72
#define ELF_EM_SVX   73
#define ELF_EM_ST19   74
#define ELF_EM_VAX   75
#define ELF_EM_PJ   99
#define ELF_EV_NONE   0
#define ELF_EV_CURRENT   1
#define ELF_SHN_UNDEF   0
#define ELF_SHN_ABS   0xfff1
#define ELF_SHN_COMMON   0xfff2
#define ELF_SHT_NULL   0
#define ELF_SHT_PROGBITS   1
#define ELF_SHT_SYMTAB   2
#define ELF_SHT_STRTAB   3
#define ELF_SHT_RELA   4
#define ELF_SHT_HASH   5
#define ELF_SHT_DYNAMIC   6
#define ELF_SHT_NOTE   7
#define ELF_SHT_NOBITS   8
#define ELF_SHT_REL   9
#define ELF_SHT_SHLIB   10
#define ELF_SHT_DYNSYM   11
#define ELF_SHT_INIT_ARRAY   14
#define ELF_SHT_FINI_ARRAY   15
#define ELF_SHT_PREINIT_ARRAY   16
#define ELF_SHF_WRITE   (1<<0)
#define ELF_SHF_ALLOC   (1<<1)
#define ELF_SHF_EXECINSTR   (1<<2)
#define ELF_SHF_MERGE   (1<<4)
#define ELF_SHF_STRINGS   (1<<5)
#define ELF_SHF_INFO_LINK   (1<<6)
#define ELF_SHF_LINK_ORDER   (1<<7)
#define ELF_SHF_OS_NONCONFORMING   (1<<8)
#define ELF_PT_NULL   0
#define ELF_PT_LOAD   1
#define ELF_PT_DYNAMIC   2
#define ELF_PT_INTERP   3
#define ELF_PT_NOTE   4
#define ELF_PT_SHLIB   5
#define ELF_PT_PHDR   6
#define ELF_STB_LOCAL   0
#define ELF_STB_GLOBAL   1
#define ELF_STB_WEAK   2
#define ELF_STT_NOTYPE   0
#define ELF_STT_OBJECT   1
#define ELF_STT_FUNC   2
#define ELF_STT_SECTION   3
#define ELF_STT_FILE   4
#define ELF_STT_COMMON   5
#define ELF32_ST_BIND(i)   ((i)>>4)
#define ELF32_ST_TYPE(i)   ((i)&0xf)
#define ELF32_ST_INFO(b, t)   (((b)>>4)|((t)&0xf))
#define ELF64_ST_BIND(i)   ((i)>>4)
#define ELF64_ST_TYPE(i)   ((i)&0xf)
#define ELF64_ST_INFO(b, t)   (((b)>>4)|((t)&0xf))
#define ELF32_R_SYM(i)   ((i)>>8)
#define ELF32_R_TYPE(i)   ((unsigned char)(i))
#define ELF32_R_INFO(s, t)   (((s)<<8)+(unsigned char)(t))
#define ELF_R_386_NONE   0
#define ELF_R_386_32   1
#define ELF_R_386_PC32   2
#define ELF_R_386_GOT32   3
#define ELF_R_386_PLT32   4
#define ELF_R_386_COPY   5
#define ELF_R_386_GLOB_DAT   6
#define ELF_R_386_JMP_SLOT   7
#define ELF_R_386_RELATIVE   8
#define ELF_R_386_GOTOFF   9
#define ELF_R_386_GOTPC   10

Typedefs

typedef unsigned char elf_unsigned_char
typedef dword elf32_addr
typedef word elf32_half
typedef dword elf32_off
typedef dword elf32_sword
typedef dword elf32_word
typedef qword elf64_addr
typedef qword elf64_off
typedef qword elf64_sword
typedef qword elf64_word
typedef dword elf64_half
typedef word elf64_quarter

Variables

byte ELF_HEADER_struct []
byte ELF_HEADER32_struct []
byte ELF_SECTION_HEADER32_struct []
byte ELF_PROGRAM_HEADER32_struct []
byte ELF_SYMBOL32_struct []
byte ELF_REL32_struct []
byte ELF_RELA32_struct []
byte ELF_HEADER64_struct []
byte ELF_SECTION_HEADER64_struct []
byte ELF_PROGRAM_HEADER64_struct []
byte ELF_SYMBOL64_struct []
byte ELF_REL64_struct []
byte ELF_RELA64_struct []


Define Documentation

#define EI_NIDENT   16
 

Definition at line 62 of file elfstruc.h.

#define ELF32_R_INFO s,
 )     (((s)<<8)+(unsigned char)(t))
 

Definition at line 353 of file elfstruc.h.

#define ELF32_R_SYM  )     ((i)>>8)
 

Definition at line 351 of file elfstruc.h.

Referenced by ht_elf::relocate_section().

#define ELF32_R_TYPE  )     ((unsigned char)(i))
 

Definition at line 352 of file elfstruc.h.

Referenced by ht_elf::relocate_section().

#define ELF32_ST_BIND  )     ((i)>>4)
 

Definition at line 321 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF32_ST_INFO b,
 )     (((b)>>4)|((t)&0xf))
 

Definition at line 323 of file elfstruc.h.

#define ELF32_ST_TYPE  )     ((i)&0xf)
 

Definition at line 322 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF64_ST_BIND  )     ((i)>>4)
 

Definition at line 325 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF64_ST_INFO b,
 )     (((b)>>4)|((t)&0xf))
 

Definition at line 327 of file elfstruc.h.

#define ELF64_ST_TYPE  )     ((i)&0xf)
 

Definition at line 326 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_EI_ABIVERSION   8
 

Definition at line 59 of file elfstruc.h.

#define ELF_EI_CLASS   4
 

Definition at line 55 of file elfstruc.h.

Referenced by ElfAnalyser::addressToFileofs(), ElfAnalyser::beginAnalysis(), ElfAnalyser::createAddress(), ht_elf::done(), ElfAnalyser::fileofsToAddress(), ElfAnalyser::getSegmentNameByAddress(), htelfheader_init(), ht_elf::init(), ElfAnalyser::initInsertSymbols(), ElfAnalyser::initUnasm(), and ElfAnalyser::validAddress().

#define ELF_EI_DATA   5
 

Definition at line 56 of file elfstruc.h.

Referenced by htelfheader_init(), and ht_elf::init().

#define ELF_EI_MAG0   0
 

Definition at line 51 of file elfstruc.h.

#define ELF_EI_MAG1   1
 

Definition at line 52 of file elfstruc.h.

#define ELF_EI_MAG2   2
 

Definition at line 53 of file elfstruc.h.

#define ELF_EI_MAG3   3
 

Definition at line 54 of file elfstruc.h.

#define ELF_EI_OSABI   7
 

Definition at line 58 of file elfstruc.h.

#define ELF_EI_PAD   9
 

Definition at line 60 of file elfstruc.h.

#define ELF_EI_VERSION   6
 

Definition at line 57 of file elfstruc.h.

#define ELF_EM_386   3
 

Definition at line 108 of file elfstruc.h.

Referenced by ElfAnalyser::createAddress(), ElfAnalyser::createAddress32(), ElfAnalyser::createAssembler(), and ElfAnalyser::initUnasm().

#define ELF_EM_486   6
 

Definition at line 111 of file elfstruc.h.

#define ELF_EM_68HC05   72
 

Definition at line 161 of file elfstruc.h.

#define ELF_EM_68HC08   71
 

Definition at line 160 of file elfstruc.h.

#define ELF_EM_68HC11   70
 

Definition at line 159 of file elfstruc.h.

#define ELF_EM_68HC12   53
 

Definition at line 144 of file elfstruc.h.

#define ELF_EM_68HC16   69
 

Definition at line 158 of file elfstruc.h.

#define ELF_EM_68K   4
 

Definition at line 109 of file elfstruc.h.

#define ELF_EM_860   7
 

Definition at line 112 of file elfstruc.h.

#define ELF_EM_88K   5
 

Definition at line 110 of file elfstruc.h.

#define ELF_EM_960   19
 

Definition at line 122 of file elfstruc.h.

#define ELF_EM_ARC   45
 

Definition at line 136 of file elfstruc.h.

#define ELF_EM_ARM   40
 

Definition at line 131 of file elfstruc.h.

#define ELF_EM_COLDFIRE   52
 

Definition at line 143 of file elfstruc.h.

#define ELF_EM_FR20   37
 

Definition at line 127 of file elfstruc.h.

#define ELF_EM_FX66   66
 

Definition at line 155 of file elfstruc.h.

#define ELF_EM_H8_300   46
 

Definition at line 137 of file elfstruc.h.

#define ELF_EM_H8_300H   47
 

Definition at line 138 of file elfstruc.h.

#define ELF_EM_H8_500   49
 

Definition at line 140 of file elfstruc.h.

#define ELF_EM_H8S   48
 

Definition at line 139 of file elfstruc.h.

#define ELF_EM_IA_64   50
 

Definition at line 141 of file elfstruc.h.

Referenced by ElfAnalyser::initUnasm().

#define ELF_EM_M32   1
 

Definition at line 106 of file elfstruc.h.

#define ELF_EM_MCORE   39
 

Definition at line 129 of file elfstruc.h.

#define ELF_EM_ME16   59
 

Definition at line 150 of file elfstruc.h.

#define ELF_EM_MIPS   8
 

Definition at line 113 of file elfstruc.h.

#define ELF_EM_MIPS_RS3_LE   10
 

Definition at line 116 of file elfstruc.h.

#define ELF_EM_MIPS_RS4_BE   10
 

Definition at line 115 of file elfstruc.h.

#define ELF_EM_MIPS_X   51
 

Definition at line 142 of file elfstruc.h.

#define ELF_EM_MMA   54
 

Definition at line 145 of file elfstruc.h.

#define ELF_EM_NCPU   56
 

Definition at line 147 of file elfstruc.h.

#define ELF_EM_NDR1   57
 

Definition at line 148 of file elfstruc.h.

#define ELF_EM_NONE   0
 

Definition at line 105 of file elfstruc.h.

#define ELF_EM_OLD_ALPHA   41
 

Definition at line 132 of file elfstruc.h.

#define ELF_EM_PARISC   15
 

Definition at line 118 of file elfstruc.h.

#define ELF_EM_PCP   55
 

Definition at line 146 of file elfstruc.h.

#define ELF_EM_PJ   99
 

Definition at line 166 of file elfstruc.h.

#define ELF_EM_PPC   20
 

Definition at line 123 of file elfstruc.h.

Referenced by ElfAnalyser::initUnasm().

#define ELF_EM_PPC64   21
 

Definition at line 124 of file elfstruc.h.

Referenced by ElfAnalyser::initUnasm().

#define ELF_EM_RCE   39
 

Definition at line 130 of file elfstruc.h.

#define ELF_EM_RH32   38
 

Definition at line 128 of file elfstruc.h.

#define ELF_EM_S370   9
 

Definition at line 114 of file elfstruc.h.

#define ELF_EM_SH   42
 

Definition at line 133 of file elfstruc.h.

#define ELF_EM_SPARC   2
 

Definition at line 107 of file elfstruc.h.

#define ELF_EM_SPARC32PLUS   18
 

Definition at line 121 of file elfstruc.h.

#define ELF_EM_SPARCV9   43
 

Definition at line 134 of file elfstruc.h.

#define ELF_EM_ST100   60
 

Definition at line 151 of file elfstruc.h.

#define ELF_EM_ST19   74
 

Definition at line 163 of file elfstruc.h.

#define ELF_EM_ST7   68
 

Definition at line 157 of file elfstruc.h.

#define ELF_EM_ST9PLUS   67
 

Definition at line 156 of file elfstruc.h.

#define ELF_EM_STARCORE   58
 

Definition at line 149 of file elfstruc.h.

#define ELF_EM_SVX   73
 

Definition at line 162 of file elfstruc.h.

#define ELF_EM_TINYJ   61
 

Definition at line 152 of file elfstruc.h.

#define ELF_EM_TRICORE   44
 

Definition at line 135 of file elfstruc.h.

#define ELF_EM_V800   36
 

Definition at line 126 of file elfstruc.h.

#define ELF_EM_VAX   75
 

Definition at line 164 of file elfstruc.h.

#define ELF_EM_VPP550   17
 

Definition at line 120 of file elfstruc.h.

#define ELF_EM_X86_64   62
 

Definition at line 153 of file elfstruc.h.

#define ELF_ET_CORE   4
 

Definition at line 98 of file elfstruc.h.

#define ELF_ET_DYN   3
 

Definition at line 97 of file elfstruc.h.

Referenced by ElfAnalyser::beginAnalysis().

#define ELF_ET_EXEC   2
 

Definition at line 96 of file elfstruc.h.

Referenced by ElfAnalyser::beginAnalysis().

#define ELF_ET_HIOS   0xFEFF
 

Definition at line 100 of file elfstruc.h.

#define ELF_ET_HIPROC   0xFFFF
 

Definition at line 102 of file elfstruc.h.

#define ELF_ET_LOOS   0xFE00
 

Definition at line 99 of file elfstruc.h.

#define ELF_ET_LOPROC   0xFF00
 

Definition at line 101 of file elfstruc.h.

#define ELF_ET_NONE   0
 

Definition at line 94 of file elfstruc.h.

#define ELF_ET_REL   1
 

Definition at line 95 of file elfstruc.h.

Referenced by ht_elf::init().

#define ELF_EV_CURRENT   1
 

Definition at line 170 of file elfstruc.h.

#define ELF_EV_NONE   0
 

Definition at line 169 of file elfstruc.h.

#define ELF_PT_DYNAMIC   2
 

Definition at line 278 of file elfstruc.h.

#define ELF_PT_INTERP   3
 

Definition at line 279 of file elfstruc.h.

#define ELF_PT_LOAD   1
 

Definition at line 277 of file elfstruc.h.

#define ELF_PT_NOTE   4
 

Definition at line 280 of file elfstruc.h.

#define ELF_PT_NULL   0
 

Definition at line 276 of file elfstruc.h.

#define ELF_PT_PHDR   6
 

Definition at line 282 of file elfstruc.h.

#define ELF_PT_SHLIB   5
 

Definition at line 281 of file elfstruc.h.

#define ELF_R_386_32   1
 

Definition at line 356 of file elfstruc.h.

Referenced by ht_elf32_reloc_entry::ht_elf32_reloc_entry(), and ht_elf32_reloc_file::reloc_apply().

#define ELF_R_386_COPY   5
 

Definition at line 360 of file elfstruc.h.

#define ELF_R_386_GLOB_DAT   6
 

Definition at line 361 of file elfstruc.h.

#define ELF_R_386_GOT32   3
 

Definition at line 358 of file elfstruc.h.

#define ELF_R_386_GOTOFF   9
 

Definition at line 364 of file elfstruc.h.

#define ELF_R_386_GOTPC   10
 

Definition at line 365 of file elfstruc.h.

#define ELF_R_386_JMP_SLOT   7
 

Definition at line 362 of file elfstruc.h.

#define ELF_R_386_NONE   0
 

Definition at line 355 of file elfstruc.h.

#define ELF_R_386_PC32   2
 

Definition at line 357 of file elfstruc.h.

Referenced by ht_elf32_reloc_entry::ht_elf32_reloc_entry(), and ht_elf32_reloc_file::reloc_apply().

#define ELF_R_386_PLT32   4
 

Definition at line 359 of file elfstruc.h.

#define ELF_R_386_RELATIVE   8
 

Definition at line 363 of file elfstruc.h.

#define ELF_SHF_ALLOC   (1<<1)
 

Definition at line 237 of file elfstruc.h.

Referenced by ht_elf::fake_undefined_symbols32().

#define ELF_SHF_EXECINSTR   (1<<2)
 

Definition at line 238 of file elfstruc.h.

Referenced by ElfAnalyser::validAddress().

#define ELF_SHF_INFO_LINK   (1<<6)
 

Definition at line 242 of file elfstruc.h.

#define ELF_SHF_LINK_ORDER   (1<<7)
 

Definition at line 243 of file elfstruc.h.

#define ELF_SHF_MERGE   (1<<4)
 

Definition at line 240 of file elfstruc.h.

#define ELF_SHF_OS_NONCONFORMING   (1<<8)
 

Definition at line 244 of file elfstruc.h.

#define ELF_SHF_STRINGS   (1<<5)
 

Definition at line 241 of file elfstruc.h.

#define ELF_SHF_WRITE   (1<<0)
 

Definition at line 236 of file elfstruc.h.

Referenced by ht_elf::fake_undefined_symbols32(), and ElfAnalyser::validAddress().

#define ELF_SHN_ABS   0xfff1
 

Definition at line 214 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_SHN_COMMON   0xfff2
 

Definition at line 215 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_SHN_UNDEF   0
 

Definition at line 213 of file elfstruc.h.

Referenced by ht_elf::fake_undefined_symbols32(), and ElfAnalyser::initInsertSymbols().

#define ELF_SHT_DYNAMIC   6
 

Definition at line 224 of file elfstruc.h.

#define ELF_SHT_DYNSYM   11
 

Definition at line 229 of file elfstruc.h.

Referenced by ElfAnalyser::beginAnalysis().

#define ELF_SHT_FINI_ARRAY   15
 

Definition at line 232 of file elfstruc.h.

#define ELF_SHT_HASH   5
 

Definition at line 223 of file elfstruc.h.

#define ELF_SHT_INIT_ARRAY   14
 

Definition at line 231 of file elfstruc.h.

#define ELF_SHT_NOBITS   8
 

Definition at line 226 of file elfstruc.h.

Referenced by elf_valid_section(), and ht_elf::fake_undefined_symbols32().

#define ELF_SHT_NOTE   7
 

Definition at line 225 of file elfstruc.h.

#define ELF_SHT_NULL   0
 

Definition at line 218 of file elfstruc.h.

#define ELF_SHT_PREINIT_ARRAY   16
 

Definition at line 233 of file elfstruc.h.

#define ELF_SHT_PROGBITS   1
 

Definition at line 219 of file elfstruc.h.

Referenced by ht_elf::auto_relocate32(), elf_phys_and_mem_section(), elf_valid_section(), and ElfAnalyser::validAddress().

#define ELF_SHT_REL   9
 

Definition at line 227 of file elfstruc.h.

Referenced by ht_elf::relocate_section().

#define ELF_SHT_RELA   4
 

Definition at line 222 of file elfstruc.h.

#define ELF_SHT_SHLIB   10
 

Definition at line 228 of file elfstruc.h.

#define ELF_SHT_STRTAB   3
 

Definition at line 221 of file elfstruc.h.

#define ELF_SHT_SYMTAB   2
 

Definition at line 220 of file elfstruc.h.

Referenced by ElfAnalyser::beginAnalysis(), and ht_elf::fake_undefined_symbols32().

#define ELF_STB_GLOBAL   1
 

Definition at line 311 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_STB_LOCAL   0
 

Definition at line 310 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_STB_WEAK   2
 

Definition at line 312 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_STT_COMMON   5
 

Definition at line 319 of file elfstruc.h.

#define ELF_STT_FILE   4
 

Definition at line 318 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_STT_FUNC   2
 

Definition at line 316 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_STT_NOTYPE   0
 

Definition at line 314 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_STT_OBJECT   1
 

Definition at line 315 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELF_STT_SECTION   3
 

Definition at line 317 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().

#define ELFCLASS32   1
 

Definition at line 70 of file elfstruc.h.

Referenced by ElfAnalyser::beginAnalysis(), ElfAnalyser::createAddress(), ht_elf::done(), elf_addr_is_valid(), elf_addr_to_ofs(), elf_addr_to_section(), elf_ofs_to_addr(), elf_ofs_to_section(), elf_phys_and_mem_section(), elf_valid_section(), ElfAnalyser::fileofsToAddress(), htelfheader_init(), ht_elf::init(), ElfAnalyser::initInsertSymbols(), ElfAnalyser::initUnasm(), and ElfAnalyser::validAddress().

#define ELFCLASS64   2
 

Definition at line 71 of file elfstruc.h.

Referenced by ElfAnalyser::beginAnalysis(), ElfAnalyser::createAddress(), ht_elf::done(), elf_addr_is_valid(), elf_addr_to_ofs(), elf_addr_to_section(), elf_ofs_to_addr(), elf_ofs_to_section(), elf_phys_and_mem_section(), elf_valid_section(), ElfAnalyser::fileofsToAddress(), htelfheader_init(), ht_elf::init(), ElfAnalyser::initUnasm(), and ElfAnalyser::validAddress().

#define ELFCLASSNONE   0
 

Definition at line 69 of file elfstruc.h.

#define ELFDATA2LSB   1
 

Definition at line 74 of file elfstruc.h.

Referenced by ht_elf::init().

#define ELFDATA2MSB   2
 

Definition at line 75 of file elfstruc.h.

Referenced by htelfheader_init(), and ht_elf::init().

#define ELFDATANONE   0
 

Definition at line 73 of file elfstruc.h.

#define ELFMAG0   0x7f
 

Definition at line 64 of file elfstruc.h.

#define ELFMAG1   'E'
 

Definition at line 65 of file elfstruc.h.

#define ELFMAG2   'L'
 

Definition at line 66 of file elfstruc.h.

#define ELFMAG3   'F'
 

Definition at line 67 of file elfstruc.h.

#define ELFOSABI_86OPEN   5
 

Definition at line 82 of file elfstruc.h.

#define ELFOSABI_ARM   97
 

Definition at line 90 of file elfstruc.h.

#define ELFOSABI_FREEBSD   9
 

Definition at line 86 of file elfstruc.h.

#define ELFOSABI_HPUX   1
 

Definition at line 78 of file elfstruc.h.

#define ELFOSABI_HURD   4
 

Definition at line 81 of file elfstruc.h.

#define ELFOSABI_IRIX   8
 

Definition at line 85 of file elfstruc.h.

#define ELFOSABI_LINUX   3
 

Definition at line 80 of file elfstruc.h.

#define ELFOSABI_MODESTO   11
 

Definition at line 88 of file elfstruc.h.

#define ELFOSABI_MONTEREY   7
 

Definition at line 84 of file elfstruc.h.

#define ELFOSABI_NETBSD   2
 

Definition at line 79 of file elfstruc.h.

#define ELFOSABI_OPENBSD   12
 

Definition at line 89 of file elfstruc.h.

#define ELFOSABI_SOLARIS   6
 

Definition at line 83 of file elfstruc.h.

#define ELFOSABI_STANDALONE   255
 

Definition at line 91 of file elfstruc.h.

#define ELFOSABI_SYSV   0
 

Definition at line 77 of file elfstruc.h.

#define ELFOSABI_TRU64   10
 

Definition at line 87 of file elfstruc.h.


Typedef Documentation

typedef dword elf32_addr
 

Definition at line 32 of file elfstruc.h.

Referenced by ht_elf::auto_relocate32(), ht_elf::fake_undefined_symbols32(), ElfAnalyser::initInsertSymbols(), and ht_elf::relocate_section().

typedef word elf32_half
 

Definition at line 33 of file elfstruc.h.

typedef dword elf32_off
 

Definition at line 34 of file elfstruc.h.

typedef dword elf32_sword
 

Definition at line 35 of file elfstruc.h.

typedef dword elf32_word
 

Definition at line 36 of file elfstruc.h.

typedef qword elf64_addr
 

Definition at line 39 of file elfstruc.h.

typedef dword elf64_half
 

Definition at line 43 of file elfstruc.h.

typedef qword elf64_off
 

Definition at line 40 of file elfstruc.h.

typedef word elf64_quarter
 

Definition at line 44 of file elfstruc.h.

typedef qword elf64_sword
 

Definition at line 41 of file elfstruc.h.

typedef qword elf64_word
 

Definition at line 42 of file elfstruc.h.

typedef unsigned char elf_unsigned_char
 

Definition at line 29 of file elfstruc.h.


Variable Documentation

byte ELF_HEADER32_struct[]
 

Definition at line 390 of file elfstruc.h.

Referenced by ht_elf::init().

byte ELF_HEADER64_struct[]
 

Definition at line 396 of file elfstruc.h.

Referenced by ht_elf::init().

byte ELF_HEADER_struct[]
 

Definition at line 389 of file elfstruc.h.

byte ELF_PROGRAM_HEADER32_struct[]
 

Definition at line 392 of file elfstruc.h.

Referenced by ht_elf::init().

byte ELF_PROGRAM_HEADER64_struct[]
 

Definition at line 398 of file elfstruc.h.

Referenced by ht_elf::init().

byte ELF_REL32_struct[]
 

Definition at line 394 of file elfstruc.h.

Referenced by ht_elf::relocate_section().

byte ELF_REL64_struct[]
 

Definition at line 400 of file elfstruc.h.

byte ELF_RELA32_struct[]
 

Definition at line 395 of file elfstruc.h.

byte ELF_RELA64_struct[]
 

Definition at line 401 of file elfstruc.h.

byte ELF_SECTION_HEADER32_struct[]
 

Definition at line 391 of file elfstruc.h.

Referenced by ht_elf::init().

byte ELF_SECTION_HEADER64_struct[]
 

Definition at line 397 of file elfstruc.h.

Referenced by ht_elf::init().

byte ELF_SYMBOL32_struct[]
 

Definition at line 393 of file elfstruc.h.

Referenced by ht_elf::fake_undefined_symbols32(), ElfAnalyser::initInsertFakeSymbols(), ElfAnalyser::initInsertSymbols(), and ht_elf::relocate_section().

byte ELF_SYMBOL64_struct[]
 

Definition at line 399 of file elfstruc.h.

Referenced by ElfAnalyser::initInsertSymbols().


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