Home
last modified time | relevance | path

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

/ndk/sources/android/crazy_linker/src/
Dcrazy_linker_elf_loader.cpp104 int ret = fd_.Read(&header_, sizeof(header_)); in ReadElfHeader()
109 if (ret != static_cast<int>(sizeof(header_))) { in ReadElfHeader()
114 if (memcmp(header_.e_ident, ELFMAG, SELFMAG) != 0) { in ReadElfHeader()
119 if (header_.e_ident[EI_CLASS] != ELF::kElfClass) { in ReadElfHeader()
122 header_.e_ident[EI_CLASS]); in ReadElfHeader()
126 if (header_.e_ident[EI_DATA] != ELFDATA2LSB) { in ReadElfHeader()
127 error->Format("Not little-endian class: %d", header_.e_ident[EI_DATA]); in ReadElfHeader()
131 if (header_.e_type != ET_DYN) { in ReadElfHeader()
132 error->Format("Not a shared library type: %d", header_.e_type); in ReadElfHeader()
136 if (header_.e_version != EV_CURRENT) { in ReadElfHeader()
[all …]
Dcrazy_linker_elf_loader.h59 ELF::Ehdr header_; variable