Lines Matching refs:pcnt
495 unsigned int pcnt; in check_elf_header() local
496 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_elf_header()
499 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); in check_elf_header()
503 if (pcnt < phnum) in check_elf_header()
504 ERROR (_("Can only check %u headers, phnum was %u\n"), pcnt, phnum); in check_elf_header()
505 phnum = pcnt; in check_elf_header()
872 unsigned int pcnt; in check_symtab() local
874 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab()
876 phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); in check_symtab()
881 if (pcnt == phnum) in check_symtab()
1035 for (unsigned int pcnt = 0; pcnt < phnum; ++pcnt) in check_symtab() local
1038 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); in check_symtab()
4052 unsigned int pcnt; in check_sections() local
4056 for (pcnt = 0; pcnt < phnum; ++pcnt) in check_sections()
4057 if ((phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem)) != NULL in check_sections()
4074 cnt, section_name (ebl, cnt), pcnt); in check_sections()
4084 cnt, section_name (ebl, cnt), pcnt); in check_sections()
4110 cnt, section_name (ebl, cnt), pcnt); in check_sections()
4121 cnt, section_name (ebl, cnt), pcnt); in check_sections()
4128 segment_flags[pcnt] |= PF_X; in check_sections()
4132 cnt, section_name (ebl, cnt), pcnt); in check_sections()
4137 segment_flags[pcnt] |= PF_W; in check_sections()
4142 cnt, section_name (ebl, cnt), pcnt); in check_sections()
4149 if (pcnt == phnum) in check_sections()
4241 for (unsigned int pcnt = 0; pcnt < phnum; ++pcnt) in check_sections() local
4244 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, pcnt, &phdr_mem); in check_sections()
4248 && (segment_flags[pcnt] & PF_X) == 0) in check_sections()
4251 pcnt); in check_sections()
4254 && (segment_flags[pcnt] & PF_W) == 0) in check_sections()
4257 pcnt); in check_sections()