Searched refs:elfFile (Results 1 – 1 of 1) sorted by relevance
99 static int readElfHeader(ifstream& elfFile, Elf64_Ehdr* eh) { in readElfHeader() argument100 elfFile.seekg(0); in readElfHeader()101 if (elfFile.fail()) return -1; in readElfHeader()103 if (!elfFile.read((char*)eh, sizeof(*eh))) return -1; in readElfHeader()109 static int readSectionHeadersAll(ifstream& elfFile, vector<Elf64_Shdr>& shTable) { in readSectionHeadersAll() argument113 ret = readElfHeader(elfFile, &eh); in readSectionHeadersAll()116 elfFile.seekg(eh.e_shoff); in readSectionHeadersAll()117 if (elfFile.fail()) return -1; in readSectionHeadersAll()122 if (!elfFile.read((char*)shTable.data(), (eh.e_shnum * eh.e_shentsize))) return -ENOMEM; in readSectionHeadersAll()128 static int readSectionByIdx(ifstream& elfFile, int id, vector<char>& sec) { in readSectionByIdx() argument[all …]