Lines Matching refs:phdr
372 struct elf_phdr *phdrs, *phdr; in read_kcore() local
384 phdr = &phdrs[1]; in read_kcore()
386 phdr->p_type = PT_LOAD; in read_kcore()
387 phdr->p_flags = PF_R | PF_W | PF_X; in read_kcore()
388 phdr->p_offset = kc_vaddr_to_offset(m->addr) + data_offset; in read_kcore()
389 phdr->p_vaddr = (size_t)m->addr; in read_kcore()
391 phdr->p_paddr = __pa(m->addr); in read_kcore()
393 phdr->p_paddr = __pa_symbol(m->addr); in read_kcore()
395 phdr->p_paddr = (elf_addr_t)-1; in read_kcore()
396 phdr->p_filesz = phdr->p_memsz = m->size; in read_kcore()
397 phdr->p_align = PAGE_SIZE; in read_kcore()
398 phdr++; in read_kcore()