Lines Matching refs:phdr
186 PhdrType phdr; in GetLoadBias() local
187 if (!memory->ReadFully(offset, &phdr, sizeof(phdr))) { in GetLoadBias()
190 if (phdr.p_type == PT_LOAD && phdr.p_offset == 0) { in GetLoadBias()
191 return phdr.p_vaddr; in GetLoadBias()
201 PhdrType phdr; in ReadProgramHeaders() local
202 if (!memory_->ReadFully(offset, &phdr, sizeof(phdr))) { in ReadProgramHeaders()
206 switch (phdr.p_type) { in ReadProgramHeaders()
209 if ((phdr.p_flags & PF_X) == 0) { in ReadProgramHeaders()
213 pt_loads_[phdr.p_offset] = LoadInfo{phdr.p_offset, phdr.p_vaddr, in ReadProgramHeaders()
214 static_cast<size_t>(phdr.p_memsz)}; in ReadProgramHeaders()
215 if (phdr.p_offset == 0) { in ReadProgramHeaders()
216 *load_bias = phdr.p_vaddr; in ReadProgramHeaders()
223 eh_frame_hdr_offset_ = phdr.p_offset; in ReadProgramHeaders()
224 eh_frame_hdr_size_ = phdr.p_memsz; in ReadProgramHeaders()
228 dynamic_offset_ = phdr.p_offset; in ReadProgramHeaders()
229 dynamic_vaddr_ = phdr.p_vaddr; in ReadProgramHeaders()
230 dynamic_size_ = phdr.p_memsz; in ReadProgramHeaders()
234 HandleUnknownType(phdr.p_type, phdr.p_offset, phdr.p_filesz); in ReadProgramHeaders()