36 * symbol table object represents a symbol section in an elf file. |
36 * symbol table object represents a symbol section in an elf file. |
37 * Whenever possible, it will load all symbols from the corresponding section |
37 * Whenever possible, it will load all symbols from the corresponding section |
38 * of the elf file into memory. Otherwise, it will walk the section in file |
38 * of the elf file into memory. Otherwise, it will walk the section in file |
39 * to look up the symbol that nearest the given address. |
39 * to look up the symbol that nearest the given address. |
40 */ |
40 */ |
41 class ElfSymbolTable: public CHeapObj { |
41 class ElfSymbolTable: public CHeapObj<mtInternal> { |
42 friend class ElfFile; |
42 friend class ElfFile; |
43 public: |
43 public: |
44 ElfSymbolTable(FILE* file, Elf_Shdr shdr); |
44 ElfSymbolTable(FILE* file, Elf_Shdr shdr); |
45 ~ElfSymbolTable(); |
45 ~ElfSymbolTable(); |
46 |
46 |