Home
last modified time | relevance | path

Searched refs:shTable (Results 1 – 1 of 1) sorted by relevance

/system/bpf/libbpf_android/
DLoader.cpp107 static int readSectionHeadersAll(ifstream& elfFile, vector<Elf64_Shdr>& shTable) { in readSectionHeadersAll() argument
118 shTable.resize(eh.e_shnum); in readSectionHeadersAll()
120 if (!elfFile.read((char*)shTable.data(), (eh.e_shnum * eh.e_shentsize))) return -ENOMEM; in readSectionHeadersAll()
127 vector<Elf64_Shdr> shTable; in readSectionByIdx() local
130 ret = readSectionHeadersAll(elfFile, shTable); in readSectionByIdx()
132 entries = shTable.size(); in readSectionByIdx()
134 elfFile.seekg(shTable[id].sh_offset); in readSectionByIdx()
137 sec.resize(shTable[id].sh_size); in readSectionByIdx()
138 if (!elfFile.read(sec.data(), shTable[id].sh_size)) return -1; in readSectionByIdx()
174 vector<Elf64_Shdr> shTable; in readSectionByName() local
[all …]