Lines Matching refs:c_str
191 DL_ERR("can't read file \"%s\": %s", name_.c_str(), strerror(errno)); in ReadElfHeader()
196 DL_ERR("\"%s\" is too small to be an ELF executable: only found %zd bytes", name_.c_str(), in ReadElfHeader()
214 DL_ERR("\"%s\" has bad ELF magic: %02x%02x%02x%02x", name_.c_str(), in VerifyElfHeader()
225 DL_ERR("\"%s\" is 32-bit instead of 64-bit", name_.c_str()); in VerifyElfHeader()
227 DL_ERR("\"%s\" has unknown ELF class: %d", name_.c_str(), elf_class); in VerifyElfHeader()
234 DL_ERR("\"%s\" is 64-bit instead of 32-bit", name_.c_str()); in VerifyElfHeader()
236 DL_ERR("\"%s\" has unknown ELF class: %d", name_.c_str(), elf_class); in VerifyElfHeader()
243 DL_ERR("\"%s\" not little-endian: %d", name_.c_str(), header_.e_ident[EI_DATA]); in VerifyElfHeader()
248 DL_ERR("\"%s\" has unexpected e_type: %d", name_.c_str(), header_.e_type); in VerifyElfHeader()
253 DL_ERR("\"%s\" has unexpected e_version: %d", name_.c_str(), header_.e_version); in VerifyElfHeader()
259 name_.c_str(), in VerifyElfHeader()
269 name_.c_str(), header_.e_shentsize, sizeof(ElfW(Shdr))); in VerifyElfHeader()
275 name_.c_str(), header_.e_shentsize, sizeof(ElfW(Shdr))); in VerifyElfHeader()
276 add_dlwarning(name_.c_str(), "has invalid ELF header"); in VerifyElfHeader()
282 DL_ERR_AND_LOG("\"%s\" has invalid e_shstrndx", name_.c_str()); in VerifyElfHeader()
288 "\"%s\" has invalid e_shstrndx", name_.c_str()); in VerifyElfHeader()
289 add_dlwarning(name_.c_str(), "has invalid ELF header"); in VerifyElfHeader()
319 DL_ERR("\"%s\" has invalid e_phnum: %zd", name_.c_str(), phdr_num_); in ReadProgramHeaders()
327 name_.c_str(), in ReadProgramHeaders()
334 DL_ERR("\"%s\" phdr mmap failed: %s", name_.c_str(), strerror(errno)); in ReadProgramHeaders()
346 DL_ERR_AND_LOG("\"%s\" has no section headers", name_.c_str()); in ReadSectionHeaders()
353 name_.c_str(), in ReadSectionHeaders()
360 DL_ERR("\"%s\" shdr mmap failed: %s", name_.c_str(), strerror(errno)); in ReadSectionHeaders()
379 DL_ERR_AND_LOG("\"%s\" .dynamic section header was not found", name_.c_str()); in ReadDynamicSection()
398 name_.c_str(), in ReadDynamicSection()
407 name_.c_str(), in ReadDynamicSection()
410 add_dlwarning(name_.c_str(), "invalid .dynamic section"); in ReadDynamicSection()
417 name_.c_str(), in ReadDynamicSection()
426 name_.c_str(), in ReadDynamicSection()
429 add_dlwarning(name_.c_str(), "invalid .dynamic section"); in ReadDynamicSection()
434 name_.c_str(), in ReadDynamicSection()
443 name_.c_str(), dynamic_shdr->sh_link, strtab_shdr->sh_type); in ReadDynamicSection()
448 DL_ERR_AND_LOG("\"%s\" has invalid offset/size of .dynamic section", name_.c_str()); in ReadDynamicSection()
453 DL_ERR("\"%s\" dynamic section mmap failed: %s", name_.c_str(), strerror(errno)); in ReadDynamicSection()
461 name_.c_str()); in ReadDynamicSection()
466 DL_ERR("\"%s\" strtab section mmap failed: %s", name_.c_str(), strerror(errno)); in ReadDynamicSection()
564 DL_ERR("\"%s\" has no loadable segments", name_.c_str()); in ReserveAddressSpace()
574 load_size_ - address_space->reserved_size, load_size_, name_.c_str()); in ReserveAddressSpace()
579 DL_ERR("couldn't reserve %zd bytes of address space for \"%s\"", load_size_, name_.c_str()); in ReserveAddressSpace()
621 DL_ERR("\"%s\" invalid file size: %" PRId64, name_.c_str(), file_size_); in LoadSegments()
628 name_.c_str(), i, reinterpret_cast<void*>(phdr->p_offset), in LoadSegments()
639 DL_ERR_AND_LOG("\"%s\": W+E load segments are not allowed", name_.c_str()); in LoadSegments()
645 name_.c_str()); in LoadSegments()
646 add_dlwarning(name_.c_str(), "W+E load segments"); in LoadSegments()
656 DL_ERR("couldn't map \"%s\" segment %zd: %s", name_.c_str(), i, strerror(errno)); in LoadSegments()
682 DL_ERR("couldn't zero fill \"%s\" gap: %s", name_.c_str(), strerror(errno)); in LoadSegments()
1081 DL_ERR("can't find loaded phdr for \"%s\"", name_.c_str()); in FindPhdr()
1103 name_.c_str(), reinterpret_cast<void*>(loaded)); in CheckPhdr()