Lines Matching refs:cnt

357   size_t cnt;
395 for (cnt = EI_PAD; cnt < EI_NIDENT; ++cnt)
396 if (ehdr->e_ident[cnt] != 0)
397 ERROR (gettext ("e_ident[%zu] is not zero\n"), cnt);
405 for (cnt = 0; cnt < nvalid_e_machine; ++cnt)
406 if (valid_e_machine[cnt] == ehdr->e_machine)
408 if (cnt == nvalid_e_machine)
540 size_t cnt;
542 for (cnt = idx + 1; cnt < shnum; ++cnt)
544 Elf_Scn *scn = elf_getscn (ebl->elf, cnt);
569 if (cnt == shnum)
577 cnt, section_name (ebl, cnt));
613 for (size_t cnt = 1; cnt < shnum; ++cnt)
614 if (cnt != (size_t) idx)
616 Elf_Scn *xndxscn = elf_getscn (ebl->elf, cnt);
675 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt)
677 sym = gelf_getsymshndx (data, xndxdata, cnt, &sym_mem, &xndx);
681 idx, section_name (ebl, idx), cnt, elf_errmsg (-1));
691 idx, section_name (ebl, idx), cnt);
706 idx, section_name (ebl, idx), cnt);
712 xndxscnidx, section_name (ebl, xndxscnidx), cnt,
724 idx, section_name (ebl, idx), cnt);
731 idx, section_name (ebl, idx), cnt);
738 idx, section_name (ebl, idx), cnt);
743 idx, section_name (ebl, idx), cnt);
751 idx, section_name (ebl, idx), cnt);
752 if (cnt < shdr->sh_info)
755 idx, section_name (ebl, idx), cnt);
759 idx, section_name (ebl, idx), cnt);
806 idx, section_name (ebl, idx), cnt);
812 idx, section_name (ebl, idx), cnt,
821 idx, section_name (ebl, idx), cnt,
831 idx, section_name (ebl, idx), cnt,
837 idx, section_name (ebl, idx), cnt,
858 idx, section_name (ebl, idx), cnt);
866 idx, section_name (ebl, idx), cnt,
873 idx, section_name (ebl, idx), cnt,
880 idx, section_name (ebl, idx), cnt,
890 if (cnt >= shdr->sh_info)
893 idx, section_name (ebl, idx), cnt);
897 if (cnt < shdr->sh_info)
900 idx, section_name (ebl, idx), cnt);
907 idx, section_name (ebl, idx), cnt);
1031 idx, section_name (ebl, idx), cnt);
1035 idx, section_name (ebl, idx), cnt);
1068 size_t cnt;
1070 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt)
1073 GElf_Dyn *dyn = gelf_getdyn (d, cnt, &dyn_mem);
1332 size_t cnt, const GElf_Shdr *symshdr, Elf_Data *symdata,
1341 idx, section_name (ebl, idx), cnt);
1350 idx, section_name (ebl, idx), cnt);
1358 idx, section_name (ebl, idx), cnt);
1376 idx, section_name (ebl, idx), cnt,
1393 idx, section_name (ebl, idx), cnt);
1407 idx, section_name (ebl, idx), cnt,
1428 idx, section_name (ebl, idx), cnt);
1476 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1479 GElf_Rela *rela = gelf_getrela (data, cnt, &rela_mem);
1484 idx, section_name (ebl, idx), cnt, elf_errmsg (-1));
1488 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata,
1527 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1530 GElf_Rel *rel = gelf_getrel (data, cnt, &rel_mem);
1535 idx, section_name (ebl, idx), cnt, elf_errmsg (-1));
1539 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata,
1563 size_t cnt;
1637 for (cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1640 GElf_Dyn *dyn = gelf_getdyn (data, cnt, &dyn_mem);
1645 idx, section_name (ebl, idx), cnt, elf_errmsg (-1));
1659 idx, section_name (ebl, idx), cnt);
1671 idx, section_name (ebl, idx), cnt,
1681 idx, section_name (ebl, idx), cnt,
1699 idx, section_name (ebl, idx), cnt);
1712 idx, section_name (ebl, idx), cnt,
1755 idx, section_name (ebl, idx), cnt,
1770 idx, section_name (ebl, idx), cnt,
1779 for (cnt = 1; cnt < DT_NUM; ++cnt)
1780 if (has_dt[cnt])
1783 if (dependencies[cnt][inner] && ! has_dt[inner])
1791 ebl_dynamic_tag_name (ebl, cnt, buf1, sizeof (buf1)),
1797 if (mandatory[cnt])
1803 ebl_dynamic_tag_name (ebl, cnt, buf, sizeof (buf)));
1921 for (size_t cnt = idx + 1; cnt < shnum; ++cnt)
1924 GElf_Shdr *rshdr = gelf_getshdr (elf_getscn (ebl->elf, cnt), &rshdr_mem);
1931 cnt, section_name (ebl, cnt));
1947 for (size_t cnt = 1; cnt < data->d_size / sizeof (Elf32_Word); ++cnt)
1949 Elf32_Word xndx = ((Elf32_Word *) data->d_buf)[cnt];
1954 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_data);
1957 ERROR (gettext ("cannot get data for symbol %zu\n"), cnt);
1998 size_t cnt;
1999 for (cnt = 2; cnt < 2 + nbucket; ++cnt)
2001 if (buf + cnt >= end)
2003 else if (buf[cnt] >= maxidx)
2006 idx, section_name (ebl, idx), cnt - 2);
2009 for (; cnt < 2 + nbucket + nchain; ++cnt)
2011 if (buf + cnt >= end)
2013 else if (buf[cnt] >= maxidx)
2016 idx, section_name (ebl, idx), cnt - 2 - nbucket);
2049 size_t cnt;
2050 for (cnt = 2; cnt < 2 + nbucket; ++cnt)
2052 if (buf + cnt >= end)
2054 else if (buf[cnt] >= maxidx)
2057 idx, section_name (ebl, idx), cnt - 2);
2060 for (; cnt < 2 + nbucket + nchain; ++cnt)
2062 if (buf + cnt >= end)
2064 else if (buf[cnt] >= maxidx)
2067 idx, section_name (ebl, idx), (uint64_t) cnt - 2 - nbucket);
2122 size_t cnt;
2123 for (cnt = 4 + bitmask_words; cnt < 4 + bitmask_words + nbuckets; ++cnt)
2125 Elf32_Word symidx = ((Elf32_Word *) data->d_buf)[cnt];
2134 idx, section_name (ebl, idx), cnt - (4 + bitmask_words));
2156 cnt - (4 + bitmask_words));
2167 cnt - (4 + bitmask_words));
2197 idx, section_name (ebl, idx), cnt - (4 + bitmask_words));
2202 idx, section_name (ebl, idx), cnt - (4 + bitmask_words));
2331 for (Elf32_Word cnt = 0; cnt < gnu_nbucket; ++cnt)
2333 Elf32_Word symidx = gnu_bucket[cnt];
2349 for (Elf32_Word cnt = 0; cnt < nbucket; ++cnt)
2351 Elf32_Word symidx = bucket[cnt];
2366 for (Elf64_Xword cnt = 0; cnt < nbucket; ++cnt)
2368 Elf64_Xword symidx = bucket[cnt];
2388 for (int cnt = 1; cnt < nentries; ++cnt)
2389 if (used[cnt] != 0 && used[cnt] != 3)
2391 if (used[cnt] == 1)
2394 cnt, gnu_hash_idx,
2401 GElf_Sym *sym = gelf_getsym (sym_data, cnt, &sym_mem);
2406 cnt, hash_idx,
2496 size_t cnt;
2529 for (cnt = elsize; cnt < data->d_size; cnt += elsize)
2532 val = *((Elf32_Word *) ((char *) data->d_buf + cnt));
2534 memcpy (&val, (char *) data->d_buf + cnt, elsize);
2540 idx, section_name (ebl, idx), cnt / elsize);
2549 idx, section_name (ebl, idx), cnt / elsize,
2562 idx, section_name (ebl, idx), cnt / elsize,
2605 for (size_t cnt = 0; cnt < nknown_flags; ++cnt)
2606 if (flags & known_flags[cnt].flag)
2614 size_t ncopy = MIN (len - 1, strlen (known_flags[cnt].name));
2615 cp = mempcpy (cp, known_flags[cnt].name, ncopy);
2618 flags ^= known_flags[cnt].flag;
2778 for (int cnt = 1; (size_t) cnt < shdr->sh_size / shdr->sh_entsize; ++cnt)
2781 GElf_Versym *versym = gelf_getversym (data, cnt, &versym_mem);
2786 idx, section_name (ebl, idx), cnt);
2791 GElf_Sym *sym = gelf_getsym (symdata, cnt, &sym_mem);
2802 idx, section_name (ebl, idx), cnt);
2810 idx, section_name (ebl, idx), cnt);
2824 idx, section_name (ebl, idx), cnt, (int) *versym);
2829 idx, section_name (ebl, idx), cnt, (int) *versym);
2835 if (!has_copy_reloc (ebl, shdr->sh_link, cnt)
2839 idx, section_name (ebl, idx), cnt, (int) *versym);
2909 for (int cnt = shdr->sh_info; --cnt >= 0; )
2922 idx, section_name (ebl, idx), cnt, (int) need->vn_version);
2928 idx, section_name (ebl, idx), cnt);
2936 idx, section_name (ebl, idx), cnt);
2944 idx, section_name (ebl, idx), cnt);
2956 idx, section_name (ebl, idx), need->vn_cnt - cnt2, cnt);
2963 idx, section_name (ebl, idx), need->vn_cnt - cnt2, cnt);
2971 cnt, (int) hashval, (int) aux->vna_hash);
2981 cnt, verstr);
2991 idx, section_name (ebl, idx), need->vn_cnt - cnt2, cnt);
3003 if ((need->vn_next != 0 || cnt > 0)
3007 idx, section_name (ebl, idx), cnt);
3052 for (int cnt = shdr->sh_info; --cnt >= 0; )
3075 idx, section_name (ebl, idx), cnt);
3080 idx, section_name (ebl, idx), cnt, (int) def->vd_version);
3086 idx, section_name (ebl, idx), cnt);
3099 idx, section_name (ebl, idx), cnt);
3106 idx, section_name (ebl, idx), cnt, (int) hashval,
3115 idx, section_name (ebl, idx), cnt, name);
3134 idx, section_name (ebl, idx), cnt);
3149 idx, section_name (ebl, idx), cnt);
3161 if ((def->vd_next != 0 || cnt > 0)
3165 idx, section_name (ebl, idx), cnt);
3505 for (size_t cnt = 1; cnt < shnum; ++cnt)
3507 shdr = gelf_getshdr (elf_getscn (ebl->elf, cnt), &shdr_mem);
3512 cnt, section_name (ebl, cnt), elf_errmsg (-1));
3519 ERROR (gettext ("section [%2zu]: invalid name\n"), cnt);
3548 (int) cnt, scnname,
3564 cnt, scnname,
3581 cnt, scnname,
3599 cnt, scnname);
3605 cnt, scnname);
3610 cnt, scnname);
3618 cnt, scnname);
3637 cnt, scnname);
3642 cnt, scnname);
3651 eh_frame_hdr_scnndx = cnt;
3653 eh_frame_scnndx = cnt;
3655 gcc_except_table_scnndx = cnt;
3661 cnt, section_name (ebl, cnt));
3675 cnt, section_name (ebl, cnt),
3691 cnt, section_name (ebl, cnt), sh_flags & SHF_MASKPROC);
3697 cnt, section_name (ebl, cnt), sh_flags);
3705 cnt, section_name (ebl, cnt));
3713 cnt, section_name (ebl, cnt));
3718 cnt, section_name (ebl, cnt));
3725 cnt, section_name (ebl, cnt));
3730 cnt, section_name (ebl, cnt));
3733 check_scn_group (ebl, cnt);
3748 cnt, section_name (ebl, cnt), shdr->sh_type);
3753 && !ebl_check_special_section (ebl, cnt, shdr,
3754 section_name (ebl, cnt)))
3757 cnt, section_name (ebl, cnt));
3786 cnt, section_name (ebl, cnt), pcnt);
3794 cnt, section_name (ebl, cnt), pcnt);
3803 cnt, section_name (ebl, cnt), pcnt);
3814 cnt, section_name (ebl, cnt), pcnt);
3824 cnt, section_name (ebl, cnt), pcnt);
3834 cnt, section_name (ebl, cnt));
3837 if (cnt == shstrndx && shdr->sh_type != SHT_STRTAB)
3840 cnt, section_name (ebl, cnt));
3848 cnt, section_name (ebl, cnt));
3851 check_symtab (ebl, ehdr, shdr, cnt);
3855 check_rela (ebl, ehdr, shdr, cnt);
3859 check_rel (ebl, ehdr, shdr, cnt);
3863 check_dynamic (ebl, ehdr, shdr, cnt);
3867 check_symtab_shndx (ebl, ehdr, shdr, cnt);
3871 check_hash (shdr->sh_type, ebl, ehdr, shdr, cnt);
3872 hash_idx = cnt;
3876 check_hash (shdr->sh_type, ebl, ehdr, shdr, cnt);
3877 gnu_hash_idx = cnt;
3881 check_null (ebl, shdr, cnt);
3885 check_group (ebl, ehdr, shdr, cnt);
3889 check_note_section (ebl, ehdr, shdr, cnt);
3898 versym_scnndx = cnt;
3902 check_verneed (ebl, shdr, cnt);
3906 check_verdef (ebl, shdr, cnt);
3910 check_attributes (ebl, ehdr, shdr, cnt);
4068 check_note (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Phdr *phdr, int cnt)
4074 cnt);
4088 notes_size = check_note_data (ebl, ehdr, data, 0, cnt, phdr->p_offset);
4092 cnt, elf_errmsg (-1));
4095 cnt, phdr->p_filesz - notes_size);
4150 for (unsigned int cnt = 0; cnt < phnum; ++cnt)
4155 phdr = gelf_getphdr (ebl->elf, cnt, &phdr_mem);
4159 cnt, elf_errmsg (-1));
4169 cnt, (uint64_t) phdr->p_type);
4189 check_note (ebl, ehdr, phdr, cnt);
4246 cnt, inner);
4353 pt_gnu_eh_frame_pndx = cnt;
4360 cnt);
4366 program header entry %d: alignment not a power of 2\n"), cnt);
4369 program header entry %d: file offset and virtual address not module of alignment\n"), cnt);