Lines Matching refs:ph
271 Elf32_Phdr *ph; in main() local
329 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff, in main()
333 convert_elf_phdrs(ph, ex.e_phnum); in main()
347 qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp); in main()
351 switch (ph[i].p_type) { in main()
361 if (ph[i].p_flags & PF_W) { in main()
364 ndata.vaddr = ph[i].p_vaddr; in main()
365 ndata.len = ph[i].p_filesz; in main()
366 nbss.vaddr = ph[i].p_vaddr + ph[i].p_filesz; in main()
367 nbss.len = ph[i].p_memsz - ph[i].p_filesz; in main()
374 ntxt.vaddr = ph[i].p_vaddr; in main()
375 ntxt.len = ph[i].p_filesz; in main()
380 if (ph[i].p_vaddr < cur_vma) in main()
381 cur_vma = ph[i].p_vaddr; in main()
388 ex.e_phnum, ph[i].p_type); in main()
567 if (ph[i].p_type == PT_LOAD && ph[i].p_filesz) { in main()
568 if (cur_vma != ph[i].p_vaddr) { in main()
569 uint32_t gap = ph[i].p_vaddr - cur_vma; in main()
597 ph[i].p_filesz); in main()
598 copy(outfile, infile, ph[i].p_offset, in main()
599 ph[i].p_filesz); in main()
600 cur_vma = ph[i].p_vaddr + ph[i].p_filesz; in main()