equal
deleted
inserted
replaced
32 #include "utilities/elfStringTable.hpp" |
32 #include "utilities/elfStringTable.hpp" |
33 |
33 |
34 // We will try to load whole string table into memory if we can. |
34 // We will try to load whole string table into memory if we can. |
35 // Otherwise, fallback to more expensive file operation. |
35 // Otherwise, fallback to more expensive file operation. |
36 ElfStringTable::ElfStringTable(FILE* const file, Elf_Shdr& shdr, int index) : |
36 ElfStringTable::ElfStringTable(FILE* const file, Elf_Shdr& shdr, int index) : |
37 _section(file, shdr), _index(index), _fd(file), _next(NULL) { |
37 _next(NULL), _index(index), _section(file, shdr), _fd(file) { |
38 _status = _section.status(); |
38 _status = _section.status(); |
39 } |
39 } |
40 |
40 |
41 ElfStringTable::~ElfStringTable() { |
41 ElfStringTable::~ElfStringTable() { |
42 if (_next != NULL) { |
42 if (_next != NULL) { |