33 |
33 |
34 |
34 |
35 // The string table represents a string table section in an elf file. |
35 // The string table represents a string table section in an elf file. |
36 // Whenever there is enough memory, it will load whole string table as |
36 // Whenever there is enough memory, it will load whole string table as |
37 // one blob. Otherwise, it will load string from file when requested. |
37 // one blob. Otherwise, it will load string from file when requested. |
38 class ElfStringTable: CHeapObj { |
38 class ElfStringTable: CHeapObj<mtInternal> { |
39 friend class ElfFile; |
39 friend class ElfFile; |
40 public: |
40 public: |
41 ElfStringTable(FILE* file, Elf_Shdr shdr, int index); |
41 ElfStringTable(FILE* file, Elf_Shdr shdr, int index); |
42 ~ElfStringTable(); |
42 ~ElfStringTable(); |
43 |
43 |