Searched refs:shTable (Results 1 – 1 of 1) sorted by relevance
122 static int readSectionHeadersAll(ifstream& elfFile, vector<Elf64_Shdr>& shTable) { in readSectionHeadersAll() argument133 shTable.resize(eh.e_shnum); in readSectionHeadersAll()135 if (!elfFile.read((char*)shTable.data(), (eh.e_shnum * eh.e_shentsize))) return -ENOMEM; in readSectionHeadersAll()142 vector<Elf64_Shdr> shTable; in readSectionByIdx() local143 int ret = readSectionHeadersAll(elfFile, shTable); in readSectionByIdx()146 elfFile.seekg(shTable[id].sh_offset); in readSectionByIdx()149 sec.resize(shTable[id].sh_size); in readSectionByIdx()150 if (!elfFile.read(sec.data(), shTable[id].sh_size)) return -1; in readSectionByIdx()184 vector<Elf64_Shdr> shTable; in readSectionByName() local187 ret = readSectionHeadersAll(elfFile, shTable); in readSectionByName()[all …]