Lines Matching refs:shTable
109 static int readSectionHeadersAll(ifstream& elfFile, vector<Elf64_Shdr>& shTable) { in readSectionHeadersAll() argument
120 shTable.resize(eh.e_shnum); in readSectionHeadersAll()
122 if (!elfFile.read((char*)shTable.data(), (eh.e_shnum * eh.e_shentsize))) return -ENOMEM; in readSectionHeadersAll()
129 vector<Elf64_Shdr> shTable; in readSectionByIdx() local
132 ret = readSectionHeadersAll(elfFile, shTable); in readSectionByIdx()
134 entries = shTable.size(); in readSectionByIdx()
136 elfFile.seekg(shTable[id].sh_offset); in readSectionByIdx()
139 sec.resize(shTable[id].sh_size); in readSectionByIdx()
140 if (!elfFile.read(sec.data(), shTable[id].sh_size)) return -1; in readSectionByIdx()
176 vector<Elf64_Shdr> shTable; in readSectionByName() local
179 ret = readSectionHeadersAll(elfFile, shTable); in readSectionByName()
185 for (int i = 0; i < (int)shTable.size(); i++) { in readSectionByName()
186 char* secname = secStrTab.data() + shTable[i].sh_name; in readSectionByName()
191 dataTmp.resize(shTable[i].sh_size); in readSectionByName()
193 elfFile.seekg(shTable[i].sh_offset); in readSectionByName()
196 if (!elfFile.read((char*)dataTmp.data(), shTable[i].sh_size)) return -1; in readSectionByName()
207 vector<Elf64_Shdr> shTable; in readSectionByType() local
209 ret = readSectionHeadersAll(elfFile, shTable); in readSectionByType()
212 for (int i = 0; i < (int)shTable.size(); i++) { in readSectionByType()
213 if ((int)shTable[i].sh_type != type) continue; in readSectionByType()
216 dataTmp.resize(shTable[i].sh_size); in readSectionByType()
218 elfFile.seekg(shTable[i].sh_offset); in readSectionByType()
221 if (!elfFile.read((char*)dataTmp.data(), shTable[i].sh_size)) return -1; in readSectionByType()
283 vector<Elf64_Shdr> shTable; in readCodeSections() local
286 ret = readSectionHeadersAll(elfFile, shTable); in readCodeSections()
288 entries = shTable.size(); in readCodeSections()
295 ret = getSymName(elfFile, shTable[i].sh_name, name); in readCodeSections()
311 ret = getSymName(elfFile, shTable[i + 1].sh_name, name); in readCodeSections()
345 vector<Elf64_Shdr> shTable; in getMapNames() local
351 ret = readSectionHeadersAll(elfFile, shTable); in getMapNames()
355 for (int i = 0; i < (int)shTable.size(); i++) { in getMapNames()
356 ret = getSymName(elfFile, shTable[i].sh_name, mapName); in getMapNames()