Lines Matching refs:file_offset
83 ElfStatus IsValidElfFile(int fd, uint64_t file_offset) { in IsValidElfFile() argument
85 if (!android::base::ReadFullyAtOffset(fd, buf, 4, file_offset)) { in IsValidElfFile()
138 static ElfStatus OpenObjectFile(const std::string& filename, uint64_t file_offset, in OpenObjectFile() argument
153 ElfStatus status = IsValidElfFile(fd, file_offset); in OpenObjectFile()
157 auto buffer_or_err = llvm::MemoryBuffer::getOpenFileSlice(fd, filename, file_size, file_offset); in OpenObjectFile()
334 segments[i].file_offset = phdr.p_offset; in GetProgramHeader()
423 uint64_t ReadMinExecutableVaddr(uint64_t* file_offset) { in ReadMinExecutableVaddr() argument
430 *file_offset = it->p_offset; in ReadMinExecutableVaddr()
438 *file_offset = 0; in ReadMinExecutableVaddr()
443 bool VaddrToOff(uint64_t vaddr, uint64_t* file_offset) override { in VaddrToOff() argument
447 *file_offset = vaddr - ph->p_vaddr + ph->p_offset; in VaddrToOff()