Lines Matching refs:phdr
237 void *phdr; in rproc_coredump() local
289 phdr = data + elf_hdr_get_e_phoff(class, ehdr); in rproc_coredump()
294 memset(phdr, 0, elf_size_of_phdr(class)); in rproc_coredump()
295 elf_phdr_set_p_type(class, phdr, PT_LOAD); in rproc_coredump()
296 elf_phdr_set_p_offset(class, phdr, offset); in rproc_coredump()
297 elf_phdr_set_p_vaddr(class, phdr, segment->da); in rproc_coredump()
298 elf_phdr_set_p_paddr(class, phdr, segment->da); in rproc_coredump()
299 elf_phdr_set_p_filesz(class, phdr, segment->size); in rproc_coredump()
300 elf_phdr_set_p_memsz(class, phdr, segment->size); in rproc_coredump()
301 elf_phdr_set_p_flags(class, phdr, PF_R | PF_W | PF_X); in rproc_coredump()
302 elf_phdr_set_p_align(class, phdr, 0); in rproc_coredump()
308 offset += elf_phdr_get_p_filesz(class, phdr); in rproc_coredump()
309 phdr += elf_size_of_phdr(class); in rproc_coredump()