Home
last modified time | relevance | path

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

/system/bpf/libbpf_android/
DLoader.cpp112 static int readElfHeader(ifstream& elfFile, Elf64_Ehdr* eh) { in readElfHeader() argument
113 elfFile.seekg(0); in readElfHeader()
114 if (elfFile.fail()) return -1; in readElfHeader()
116 if (!elfFile.read((char*)eh, sizeof(*eh))) return -1; in readElfHeader()
122 static int readSectionHeadersAll(ifstream& elfFile, vector<Elf64_Shdr>& shTable) { in readSectionHeadersAll() argument
126 ret = readElfHeader(elfFile, &eh); in readSectionHeadersAll()
129 elfFile.seekg(eh.e_shoff); in readSectionHeadersAll()
130 if (elfFile.fail()) return -1; in readSectionHeadersAll()
135 if (!elfFile.read((char*)shTable.data(), (eh.e_shnum * eh.e_shentsize))) return -ENOMEM; in readSectionHeadersAll()
141 static int readSectionByIdx(ifstream& elfFile, int id, vector<char>& sec) { in readSectionByIdx() argument
[all …]
/system/bpf/libbpf_android/include/
Dlibbpf_android.h33 unsigned int readSectionUint(const char* name, std::ifstream& elfFile, unsigned int defVal);