Lines Matching refs:phdr
366 struct elf_phdr *phdrs, *phdr; in read_kcore() local
378 phdr = &phdrs[1]; in read_kcore()
380 phdr->p_type = PT_LOAD; in read_kcore()
381 phdr->p_flags = PF_R | PF_W | PF_X; in read_kcore()
382 phdr->p_offset = kc_vaddr_to_offset(m->addr) + data_offset; in read_kcore()
384 phdr->p_vaddr = (size_t)m->vaddr; in read_kcore()
386 phdr->p_vaddr = (size_t)m->addr; in read_kcore()
388 phdr->p_paddr = __pa(m->addr); in read_kcore()
390 phdr->p_paddr = __pa_symbol(m->addr); in read_kcore()
392 phdr->p_paddr = (elf_addr_t)-1; in read_kcore()
393 phdr->p_filesz = phdr->p_memsz = m->size; in read_kcore()
394 phdr->p_align = PAGE_SIZE; in read_kcore()
395 phdr++; in read_kcore()