Home
last modified time | relevance | path

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

/system/bpf/libbpf_android/
DLoader.cpp99 static int readElfHeader(ifstream& elfFile, Elf64_Ehdr* eh) { in readElfHeader() argument
100 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() argument
113 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 …]