Lines Matching refs:phdr
76 Elf64_Phdr *phdr; in dboot_elfload64() local
119 phdr = (Elf64_Phdr *)(allphdrs + eh->e_phentsize * i); in dboot_elfload64()
125 if (phdr->p_type == PT_INTERP) { in dboot_elfload64()
133 if (phdr->p_type != PT_LOAD) in dboot_elfload64()
136 if (phdr->p_flags == (PF_R | PF_W) && phdr->p_vaddr == 0) { in dboot_elfload64()
144 if (phdr->p_memsz == 0) in dboot_elfload64()
150 if (phdr->p_paddr == phdr->p_vaddr) { in dboot_elfload64()
153 "paddr = 0x%lx\n", (ulong_t)phdr->p_paddr); in dboot_elfload64()
160 if (phdr->p_paddr != FOUR_MEG && phdr->p_paddr != 2 * FOUR_MEG) in dboot_elfload64()
162 src = (uintptr_t)PGETBYTES(phdr->p_offset); in dboot_elfload64()
163 dst = ktext_phys + phdr->p_paddr - FOUR_MEG; in dboot_elfload64()
167 (ulong_t)phdr->p_filesz, (ulong_t)phdr->p_offset, in dboot_elfload64()
168 (ulong_t)dst, (ulong_t)phdr->p_vaddr); in dboot_elfload64()
170 (void *)(uintptr_t)src, (size_t)phdr->p_filesz); in dboot_elfload64()
172 next_addr = dst + phdr->p_filesz; in dboot_elfload64()