Lines Matching refs:ph
268 Elf32_Phdr *ph; in main() local
327 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff, in main()
331 convert_elf_phdrs(ph, ex.e_phnum); in main()
348 qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp); in main()
352 if (ph[i].p_type == PT_NULL || ph[i].p_type == PT_NOTE || in main()
353 ph[i].p_type == PT_PHDR in main()
354 || ph[i].p_type == PT_MIPS_REGINFO) in main()
357 else if (ph[i].p_type != PT_LOAD) { in main()
360 ex.e_phnum, ph[i].p_type); in main()
364 if (ph[i].p_flags & PF_W) { in main()
367 ndata.vaddr = ph[i].p_vaddr; in main()
368 ndata.len = ph[i].p_filesz; in main()
369 nbss.vaddr = ph[i].p_vaddr + ph[i].p_filesz; in main()
370 nbss.len = ph[i].p_memsz - ph[i].p_filesz; in main()
377 ntxt.vaddr = ph[i].p_vaddr; in main()
378 ntxt.len = ph[i].p_filesz; in main()
383 if (ph[i].p_vaddr < cur_vma) in main()
384 cur_vma = ph[i].p_vaddr; in main()
561 if (ph[i].p_type == PT_LOAD && ph[i].p_filesz) { in main()
562 if (cur_vma != ph[i].p_vaddr) { in main()
564 ph[i].p_vaddr - cur_vma; in main()
592 ph[i].p_filesz); in main()
593 copy(outfile, infile, ph[i].p_offset, in main()
594 ph[i].p_filesz); in main()
595 cur_vma = ph[i].p_vaddr + ph[i].p_filesz; in main()