Lines Matching refs:phdr
235 Elf64_Phdr *phdr = &phdr_tbl[i];
237 if (phdr->p_type == PT_LOAD)
247 Elf64_Phdr *phdr = &phdr_tbl[i];
248 unsigned int flags = phdr->p_flags;
250 if (phdr->p_type != PT_LOAD)
258 phdr->p_flags);
265 phdr->p_flags);
270 src_offset = phdr->p_offset & PAGE_MASK;
276 seg->prot = (phdr->p_flags & PF_R) ? PROT_READ : 0;
277 seg->prot |= (phdr->p_flags & PF_W) ? PROT_WRITE : 0;
278 seg->prot |= (phdr->p_flags & PF_X) ? PROT_EXEC : 0;
282 seg->offset = (phdr->p_offset & PAGE_MASK) - src_offset;
283 seg->size = (phdr->p_filesz + PAGE_SIZE - 1) & PAGE_MASK;