Searched defs:DL_ERR_AND_LOG (Results 1 - 2 of 2) sorted by relevance

/bionic/linker/
H A Dlinker_globals.h53 #define DL_ERR_AND_LOG(fmt, x...) \ macro
H A Dlinker_phdr.cpp254 DL_ERR_AND_LOG("\"%s\" has unsupported e_shentsize: 0x%x (expected 0x%zx)",
266 DL_ERR_AND_LOG("\"%s\" has invalid e_shstrndx", name_.c_str());
308 DL_ERR_AND_LOG("\"%s\" has invalid phdr offset/size: %zu/%zu",
328 DL_ERR_AND_LOG("\"%s\" has no section headers", name_.c_str());
334 DL_ERR_AND_LOG("\"%s\" has invalid shdr offset/size: %zu/%zu",
361 DL_ERR_AND_LOG("\"%s\" .dynamic section header was not found", name_.c_str());
378 DL_ERR_AND_LOG("\"%s\" .dynamic section has invalid offset: 0x%zx, "
395 DL_ERR_AND_LOG("\"%s\" .dynamic section has invalid size: 0x%zx, "
411 DL_ERR_AND_LOG("\"%s\" .dynamic section has invalid sh_link: %d",
420 DL_ERR_AND_LOG("\"
182 CHECK(index < strtab_size_); return strtab_ + index; } bool ElfReader::ReadElfHeader() { ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_)); if (rc < 0) { DL_ERR(�, name_.c_str(), strerror(errno)); return false; } if (rc != sizeof(header_)) { DL_ERR(�, name_.c_str(), static_cast<size_t>(rc)); return false; } return true; } bool ElfReader::VerifyElfHeader() { if (memcmp(header_.e_ident, ELFMAG, SELFMAG) != 0) { DL_ERR(�, name_.c_str()); return false; } int elf_class = header_.e_ident[EI_CLASS]; if (elf_class != ELFCLASS64) { if (elf_class == ELFCLASS32) { DL_ERR(�, name_.c_str()); } else { DL_ERR(�, name_.c_str(), elf_class); } return false; } if (header_.e_ident[EI_DATA] != ELFDATA2LSB) { DL_ERR(�, name_.c_str(), header_.e_ident[EI_DATA]); return false; } if (header_.e_type != ET_DYN) { DL_ERR(�, name_.c_str(), header_.e_type); return false; } if (header_.e_version != EV_CURRENT) { DL_ERR(�, name_.c_str(), header_.e_version); return false; } if (header_.e_machine != GetTargetElfMachine()) { DL_ERR(�, name_.c_str(), header_.e_machine); return false; } if (header_.e_shentsize != sizeof(ElfW(Shdr))) { if (get_application_target_sdk_version() >= __ANDROID_API_O__) { DL_ERR_AND_LOG(�, name_.c_str(), header_.e_shentsize, sizeof(ElfW(Shdr))); return false; } DL_WARN(�, name_.c_str(), header_.e_shentsize, sizeof(ElfW(Shdr))); add_dlwarning(name_.c_str(), �); } if (header_.e_shstrndx == 0) { if (get_application_target_sdk_version() >= __ANDROID_API_O__) argument
[all...]

Completed in 56 milliseconds