Lines Matching refs:phdr
148 Elf64_Phdr phdr; in kvm_vm_elf_load() local
149 test_read(fd, &phdr, sizeof(phdr)); in kvm_vm_elf_load()
152 if (phdr.p_type != PT_LOAD) in kvm_vm_elf_load()
156 TEST_ASSERT(phdr.p_memsz > 0, "Unexpected loadable segment " in kvm_vm_elf_load()
159 n1, (uint64_t) phdr.p_memsz); in kvm_vm_elf_load()
160 vm_vaddr_t seg_vstart = align_down(phdr.p_vaddr, vm->page_size); in kvm_vm_elf_load()
161 vm_vaddr_t seg_vend = phdr.p_vaddr + phdr.p_memsz - 1; in kvm_vm_elf_load()
180 if (phdr.p_filesz) { in kvm_vm_elf_load()
181 offset_rv = lseek(fd, phdr.p_offset, SEEK_SET); in kvm_vm_elf_load()
182 TEST_ASSERT(offset_rv == phdr.p_offset, in kvm_vm_elf_load()
188 (intmax_t) phdr.p_offset); in kvm_vm_elf_load()
189 test_read(fd, addr_gva2hva(vm, phdr.p_vaddr), in kvm_vm_elf_load()
190 phdr.p_filesz); in kvm_vm_elf_load()