Home
last modified time | relevance | path

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

/system/bpf/libbpf_android/
DLoader.cpp97 static int readElfHeader(ifstream& elfFile, Elf64_Ehdr* eh) { in readElfHeader() argument
98 elfFile.seekg(0); in readElfHeader()
99 if (elfFile.fail()) return -1; in readElfHeader()
101 if (!elfFile.read((char*)eh, sizeof(*eh))) return -1; in readElfHeader()
107 static int readSectionHeadersAll(ifstream& elfFile, vector<Elf64_Shdr>& shTable) { in readSectionHeadersAll() argument
111 ret = readElfHeader(elfFile, &eh); in readSectionHeadersAll()
114 elfFile.seekg(eh.e_shoff); in readSectionHeadersAll()
115 if (elfFile.fail()) return -1; in readSectionHeadersAll()
120 if (!elfFile.read((char*)shTable.data(), (eh.e_shnum * eh.e_shentsize))) return -ENOMEM; in readSectionHeadersAll()
126 static int readSectionByIdx(ifstream& elfFile, int id, vector<char>& sec) { in readSectionByIdx() argument
[all …]