Lines Matching refs:phdr
258 Elf_W(Phdr) phdr; in elf_w()
259 GET_PHDR_FIELD(ei, offset, &phdr, p_type); in elf_w()
260 if (phdr.p_type == PT_LOAD) { in elf_w()
261 GET_PHDR_FIELD(ei, offset, &phdr, p_offset); in elf_w()
262 if (phdr.p_offset == mapoff) { in elf_w()
263 GET_PHDR_FIELD(ei, offset, &phdr, p_vaddr); in elf_w()
264 *load_offset = segbase - phdr.p_vaddr; in elf_w()
394 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in elf_w()
398 if (phdr[i].p_type == PT_LOAD && phdr[i].p_offset == mapoff) { in elf_w()
399 *load_offset = segbase - phdr[i].p_vaddr; in elf_w()
408 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in elf_w()
412 if (phdr[i].p_type == PT_LOAD && phdr[i].p_vaddr < min_vaddr) { in elf_w()
413 min_vaddr = phdr[i].p_vaddr; in elf_w()
619 Elf_W(Phdr)* phdr = (Elf_W(Phdr)*) ((char*) ei->u.mapped.image + ehdr->e_phoff); in elf_w()
622 if (phdr[i].p_type == PT_LOAD && phdr[i].p_offset == mapoff) { in elf_w()
623 *load_base = phdr[i].p_vaddr; in elf_w()
635 Elf_W(Phdr) phdr; in elf_w()
636 GET_PHDR_FIELD(ei, offset, &phdr, p_type); in elf_w()
637 GET_PHDR_FIELD(ei, offset, &phdr, p_offset); in elf_w()
642 if (phdr.p_type == PT_LOAD && phdr.p_offset == 0) { in elf_w()
643 GET_PHDR_FIELD(ei, offset, &phdr, p_vaddr); in elf_w()
644 *load_base = phdr.p_vaddr; in elf_w()
647 offset += sizeof(phdr); in elf_w()