##// 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 this->elfFile = (int)NULL;
34 this->elfFile = (int)NULL;
35 this->e = NULL;
35 this->e = NULL;
36 this->data = NULL;
36 this->data = NULL;
37 this->SymbolCount = 0;
37 }
38 }
38
39
39 ElfFile::ElfFile(const QString &File)
40 ElfFile::ElfFile(const QString &File)
@@ -45,6 +46,7 ElfFile::ElfFile(const QString &File)
45 this->e = NULL;
46 this->e = NULL;
46 this->p_fileName = File;
47 this->p_fileName = File;
47 this->data = NULL;
48 this->data = NULL;
49 this->SymbolCount = 0;
48 openFile(File);
50 openFile(File);
49 }
51 }
50
52
@@ -819,7 +821,8 void ElfFile::updateSymbols()
819 for(int i=0;i<(int)SectionCount;i++)
821 for(int i=0;i<(int)SectionCount;i++)
820 {
822 {
821 //First find Symbol table
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 Elf_Section* sec = sections.at(i);
827 Elf_Section* sec = sections.at(i);
825 this->SymbolCount = sec->section_header->sh_size / sec->section_header->sh_entsize;
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