Lines Matching refs:phdr
74 Elf_Phdr *phdr; /* Program header to fill in */ member
282 Elf_Phdr *phdr = phc->phdr; in cb_put_phdr() local
288 phdr->p_type = PT_LOAD; in cb_put_phdr()
289 phdr->p_offset = phc->offset; in cb_put_phdr()
290 phdr->p_vaddr = entry->start; in cb_put_phdr()
291 phdr->p_paddr = 0; in cb_put_phdr()
292 phdr->p_filesz = phdr->p_memsz = entry->end - entry->start; in cb_put_phdr()
293 phdr->p_align = page_size; in cb_put_phdr()
294 phdr->p_flags = 0; in cb_put_phdr()
296 phdr->p_flags |= PF_R; in cb_put_phdr()
298 phdr->p_flags |= PF_W; in cb_put_phdr()
300 phdr->p_flags |= PF_X; in cb_put_phdr()
302 phc->offset += phdr->p_filesz; in cb_put_phdr()
303 phc->phdr++; in cb_put_phdr()
470 Elf_Phdr *phdr; in elf_puthdr() local
534 phdr = (Elf_Phdr *)((char *)hdr + ehdr->e_phoff); in elf_puthdr()
537 phdr->p_type = PT_NOTE; in elf_puthdr()
538 phdr->p_offset = hdrsize; in elf_puthdr()
539 phdr->p_vaddr = 0; in elf_puthdr()
540 phdr->p_paddr = 0; in elf_puthdr()
541 phdr->p_filesz = notesz; in elf_puthdr()
542 phdr->p_memsz = 0; in elf_puthdr()
543 phdr->p_flags = PF_R; in elf_puthdr()
544 phdr->p_align = sizeof(Elf32_Size); in elf_puthdr()
545 phdr++; in elf_puthdr()
548 phc.phdr = phdr; in elf_puthdr()