Lines Matching refs:phdr
250 Elf_Phdr phdr; in cb_dumphdr() local
255 bzero(&phdr, sizeof(phdr)); in cb_dumphdr()
256 phdr.p_type = PT_LOAD; in cb_dumphdr()
257 phdr.p_flags = PF_R; /* XXX */ in cb_dumphdr()
258 phdr.p_offset = fileofs; in cb_dumphdr()
260 phdr.p_vaddr = (do_minidump? mdp->pa_start : ~0L); in cb_dumphdr()
261 phdr.p_paddr = (do_minidump? ~0L : mdp->pa_start); in cb_dumphdr()
263 phdr.p_vaddr = mdp->pa_start; in cb_dumphdr()
264 phdr.p_paddr = mdp->pa_start; in cb_dumphdr()
266 phdr.p_filesz = size; in cb_dumphdr()
267 phdr.p_memsz = size; in cb_dumphdr()
268 phdr.p_align = PAGE_SIZE; in cb_dumphdr()
270 error = dumpsys_buf_write(di, (char*)&phdr, sizeof(phdr)); in cb_dumphdr()
271 fileofs += phdr.p_filesz; in cb_dumphdr()