##// END OF EJS Templates
Added ".dynsym" section for symbol lookup.
Jeandet Alexis -
r13:5e16a30c7e05 default
parent child
Show More
@@ -34,6 +34,7 ElfFile::ElfFile()
34 34 this->elfFile = (int)NULL;
35 35 this->e = NULL;
36 36 this->data = NULL;
37 this->SymbolCount = 0;
37 38 }
38 39
39 40 ElfFile::ElfFile(const QString &File)
@@ -45,6 +46,7 ElfFile::ElfFile(const QString &File)
45 46 this->e = NULL;
46 47 this->p_fileName = File;
47 48 this->data = NULL;
49 this->SymbolCount = 0;
48 50 openFile(File);
49 51 }
50 52
@@ -819,7 +821,8 void ElfFile::updateSymbols()
819 821 for(int i=0;i<(int)SectionCount;i++)
820 822 {
821 823 //First find Symbol table
822 if(this->getSectionName(i)==".symtab")
824 QString sectionName = this->getSectionName(i);
825 if(sectionName==".symtab" || sectionName == ".dynsym")
823 826 {
824 827 Elf_Section* sec = sections.at(i);
825 828 this->SymbolCount = sec->section_header->sh_size / sec->section_header->sh_entsize;
General Comments 0
You need to be logged in to leave comments. Login now