ElfBinaryFile.h File Reference

#include "BinaryFile.h"
#include "SymTab.h"

Go to the source code of this file.

Classes

struct  Elf32_Dyn
struct  Elf32_Ehdr
struct  Elf32_Phdr
struct  Elf32_Rel
struct  Elf32_Shdr
struct  Elf32_Sym
class  ElfBinaryFile
struct  SymValue

Defines

#define DT_NEEDED   1
#define DT_NULL   0
#define DT_STRTAB   5
#define E_REL   1
#define ELF32_R_SYM(info)   ((info)>>8)
#define ELF32_ST_BIND(i)   ((i) >> 4)
#define ELF32_ST_INFO(b, t)   (((b)<<4)+((t)&0xf))
#define ELF32_ST_TYPE(i)   ((i) & 0xf)
#define EM_386   3
#define EM_68K   4
#define EM_PA_RISC   15
#define EM_PPC   20
#define EM_SPARC   2
#define EM_SPARC32PLUS   18
#define EM_ST20   0xa8
#define EM_X86_64   62
#define ET_DYN   3
#define R_386_32   1
#define R_386_PC32   2
#define SHF_ALLOC   2
#define SHF_EXECINSTR   4
#define SHF_WRITE   1
#define SHT_DYNSYM   11
#define SHT_NOBITS   8
#define SHT_REL   9
#define SHT_RELA   4
#define SHT_SYMTAB   2
#define STB_GLOBAL   1
#define STB_WEAK   2
#define STT_FILE   4
#define STT_FUNC   2
#define STT_NOTYPE   0
#define STT_SECTION   3

Typedefs

typedef std::map< ADDRESS,
std::string, std::less< ADDRESS > > 
RelocMap


Define Documentation

#define DT_NEEDED   1
 

Definition at line 148 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::getDependencyList().

#define DT_NULL   0
 

Definition at line 146 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::getDependencyList().

#define DT_STRTAB   5
 

Definition at line 147 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::getDependencyList().

#define E_REL   1
 

Definition at line 150 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::AddSyms(), ElfBinaryFile::applyRelocations(), ElfBinaryFile::IsRelocationAt(), ElfBinaryFile::SearchValueByName(), and ElfBinaryFile::ValueByName().

#define ELF32_R_SYM info   )     ((info)>>8)
 

Definition at line 125 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetDynamicGlobalMap().

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

Definition at line 126 of file ElfBinaryFile.h.

#define ELF32_ST_INFO b,
 )     (((b)<<4)+((t)&0xf))
 

Definition at line 128 of file ElfBinaryFile.h.

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

Definition at line 127 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::AddSyms(), ElfBinaryFile::applyRelocations(), and ElfBinaryFile::ValueByName().

#define EM_386   3
 

Definition at line 62 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::applyRelocations(), ElfBinaryFile::GetMachine(), and ElfBinaryFile::IsRelocationAt().

#define EM_68K   4
 

Definition at line 63 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetMachine().

#define EM_PA_RISC   15
 

Definition at line 64 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetMachine().

#define EM_PPC   20
 

Definition at line 66 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetMachine().

#define EM_SPARC   2
 

Definition at line 61 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::applyRelocations(), ElfBinaryFile::GetMachine(), and ElfBinaryFile::IsRelocationAt().

#define EM_SPARC32PLUS   18
 

Definition at line 65 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetMachine().

#define EM_ST20   0xa8
 

Definition at line 68 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetMachine().

#define EM_X86_64   62
 

Definition at line 67 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetMachine().

#define ET_DYN   3
 

Definition at line 70 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::isLibrary().

#define R_386_32   1
 

Definition at line 72 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::AddRelocsAsSyms().

#define R_386_PC32   2
 

Definition at line 73 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::AddRelocsAsSyms().

#define SHF_ALLOC   2
 

Definition at line 102 of file ElfBinaryFile.h.

#define SHF_EXECINSTR   4
 

Definition at line 103 of file ElfBinaryFile.h.

#define SHF_WRITE   1
 

Definition at line 101 of file ElfBinaryFile.h.

#define SHT_DYNSYM   11
 

Definition at line 109 of file ElfBinaryFile.h.

#define SHT_NOBITS   8
 

Definition at line 105 of file ElfBinaryFile.h.

#define SHT_REL   9
 

Definition at line 106 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::applyRelocations(), and ElfBinaryFile::IsRelocationAt().

#define SHT_RELA   4
 

Definition at line 107 of file ElfBinaryFile.h.

#define SHT_SYMTAB   2
 

Definition at line 108 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::GetExportedAddresses(), and ElfBinaryFile::getFilenameSymbolFor().

#define STB_GLOBAL   1
 

Definition at line 133 of file ElfBinaryFile.h.

#define STB_WEAK   2
 

Definition at line 134 of file ElfBinaryFile.h.

#define STT_FILE   4
 

Definition at line 132 of file ElfBinaryFile.h.

#define STT_FUNC   2
 

Definition at line 130 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::AddSyms().

#define STT_NOTYPE   0
 

Definition at line 129 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::ValueByName().

#define STT_SECTION   3
 

Definition at line 131 of file ElfBinaryFile.h.

Referenced by ElfBinaryFile::AddRelocsAsSyms(), and ElfBinaryFile::applyRelocations().


Typedef Documentation

typedef std::map<ADDRESS,std::string,std::less<ADDRESS> > RelocMap
 

Definition at line 30 of file ElfBinaryFile.h.


Generated on Tue Sep 19 21:18:37 2006 for Boomerang by  doxygen 1.4.6