• Home
  • Raw
  • Download

Lines Matching refs:idx

97 				GElf_Shdr *shdr, int idx);
314 section_name (Ebl *ebl, int idx) in section_name() argument
320 if ((unsigned int) idx > shnum) in section_name()
323 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem); in section_name()
536 check_scn_group (Ebl *ebl, int idx) in check_scn_group() argument
538 if (scnref[idx] == 0) in check_scn_group()
544 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group()
567 if (grpdata[inner] == (Elf32_Word) idx) in check_scn_group()
575 idx, section_name (ebl, idx)); in check_scn_group()
579 idx, section_name (ebl, idx), in check_scn_group()
586 check_symtab (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_symtab() argument
590 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_symtab()
594 idx, section_name (ebl, idx)); in check_symtab()
608 idx, section_name (ebl, idx)); in check_symtab()
617 if (cnt != (size_t) idx) in check_symtab()
626 && xndxshdr->sh_link == (GElf_Word) idx) in check_symtab()
631 idx, section_name (ebl, idx)); in check_symtab()
643 idx, section_name (ebl, idx)); in check_symtab()
651 idx, section_name (ebl, idx), 0, elf_errmsg (-1)); in check_symtab()
656 idx, section_name (ebl, idx), "st_name"); in check_symtab()
659 idx, section_name (ebl, idx), "st_value"); in check_symtab()
662 idx, section_name (ebl, idx), "st_size"); in check_symtab()
665 idx, section_name (ebl, idx), "st_info"); in check_symtab()
668 idx, section_name (ebl, idx), "st_other"); in check_symtab()
671 idx, section_name (ebl, idx), "st_shndx"); in check_symtab()
684 idx, section_name (ebl, idx), cnt, elf_errmsg (-1)); in check_symtab()
694 idx, section_name (ebl, idx), cnt); in check_symtab()
709 idx, section_name (ebl, idx), cnt); in check_symtab()
727 idx, section_name (ebl, idx), cnt); in check_symtab()
734 idx, section_name (ebl, idx), cnt); in check_symtab()
741 idx, section_name (ebl, idx), cnt); in check_symtab()
746 idx, section_name (ebl, idx), cnt); in check_symtab()
754 idx, section_name (ebl, idx), cnt); in check_symtab()
758 idx, section_name (ebl, idx), cnt); in check_symtab()
762 idx, section_name (ebl, idx), cnt); in check_symtab()
793 || (strcmp (section_name (ebl, idx), ".symtab") in check_symtab()
794 && strcmp (section_name (ebl, idx), in check_symtab()
813 idx, section_name (ebl, idx), cnt); in check_symtab()
819 idx, section_name (ebl, idx), cnt, in check_symtab()
828 idx, section_name (ebl, idx), cnt, in check_symtab()
838 idx, section_name (ebl, idx), cnt, in check_symtab()
844 idx, section_name (ebl, idx), cnt, in check_symtab()
865 idx, section_name (ebl, idx), cnt); in check_symtab()
871 idx, section_name (ebl, idx), cnt); in check_symtab()
879 idx, section_name (ebl, idx), cnt, in check_symtab()
886 idx, section_name (ebl, idx), cnt, in check_symtab()
893 idx, section_name (ebl, idx), cnt, in check_symtab()
906 idx, section_name (ebl, idx), cnt); in check_symtab()
913 idx, section_name (ebl, idx), cnt); in check_symtab()
920 idx, section_name (ebl, idx), cnt); in check_symtab()
971 idx, section_name (ebl, idx), xndx); in check_symtab()
978 idx, section_name (ebl, idx), xndx, sname); in check_symtab()
993 idx, section_name (ebl, idx), in check_symtab()
1000 idx, section_name (ebl, idx), in check_symtab()
1008 idx, section_name (ebl, idx)); in check_symtab()
1024 idx, section_name (ebl, idx), in check_symtab()
1031 idx, section_name (ebl, idx), in check_symtab()
1044 idx, section_name (ebl, idx), cnt); in check_symtab()
1048 idx, section_name (ebl, idx), cnt); in check_symtab()
1055 is_rel_dyn (Ebl *ebl, const GElf_Ehdr *ehdr, int idx, const GElf_Shdr *shdr, in is_rel_dyn() argument
1063 if (strcmp (section_name (ebl, idx), is_rela ? ".rela.dyn" : ".rel.dyn")) in is_rel_dyn()
1086 idx, section_name (ebl, idx)); in is_rel_dyn()
1102 idx, section_name (ebl, idx)); in is_rel_dyn()
1113 idx, section_name (ebl, idx), in is_rel_dyn()
1119 idx), NULL); in is_rel_dyn()
1138 idx, section_name (ebl, idx), in is_rel_dyn()
1144 idx, section_name (ebl, idx), in is_rel_dyn()
1156 idx, section_name (ebl, idx)); in is_rel_dyn()
1166 idx, section_name (ebl, idx), in is_rel_dyn()
1172 idx), NULL); in is_rel_dyn()
1191 idx, section_name (ebl, idx), in is_rel_dyn()
1197 idx, section_name (ebl, idx), in is_rel_dyn()
1230 int idx, int reltype, GElf_Shdr **destshdrp, in check_reloc_shdr() argument
1238 idx, section_name (ebl, idx)); in check_reloc_shdr()
1247 reldyn = is_rel_dyn (ebl, ehdr, idx, shdr, true); in check_reloc_shdr()
1251 idx, section_name (ebl, idx)); in check_reloc_shdr()
1259 idx, section_name (ebl, idx)); in check_reloc_shdr()
1267 idx, section_name (ebl, idx)); in check_reloc_shdr()
1276 idx, section_name (ebl, idx)); in check_reloc_shdr()
1351 check_one_reloc (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *relshdr, int idx, in check_one_reloc() argument
1361 idx, section_name (ebl, idx), cnt); in check_one_reloc()
1370 idx, section_name (ebl, idx), cnt); in check_one_reloc()
1378 idx, section_name (ebl, idx), cnt); in check_one_reloc()
1396 idx, section_name (ebl, idx), cnt, in check_one_reloc()
1413 idx, section_name (ebl, idx), cnt); in check_one_reloc()
1427 idx, section_name (ebl, idx), cnt, in check_one_reloc()
1448 idx, section_name (ebl, idx), cnt); in check_one_reloc()
1464 idx, section_name (ebl, idx)); in check_one_reloc()
1472 check_rela (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_rela() argument
1474 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_rela()
1478 idx, section_name (ebl, idx)); in check_rela()
1486 bool reldyn = check_reloc_shdr (ebl, ehdr, shdr, idx, ELF_T_RELA, &destshdr, in check_rela()
1504 idx, section_name (ebl, idx), cnt, elf_errmsg (-1)); in check_rela()
1508 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rela()
1523 check_rel (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_rel() argument
1525 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_rel()
1529 idx, section_name (ebl, idx)); in check_rel()
1537 bool reldyn = check_reloc_shdr (ebl, ehdr, shdr, idx, ELF_T_REL, &destshdr, in check_rel()
1555 idx, section_name (ebl, idx), cnt, elf_errmsg (-1)); in check_rel()
1559 check_one_reloc (ebl, ehdr, shdr, idx, cnt, symshdr, symdata, in check_rel()
1578 check_dynamic (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_dynamic() argument
1631 data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_dynamic()
1635 idx, section_name (ebl, idx)); in check_dynamic()
1644 idx, section_name (ebl, idx)); in check_dynamic()
1649 shdr->sh_link, idx, section_name (ebl, idx)); in check_dynamic()
1657 idx, section_name (ebl, idx)); in check_dynamic()
1661 idx, section_name (ebl, idx)); in check_dynamic()
1672 idx, section_name (ebl, idx), cnt, elf_errmsg (-1)); in check_dynamic()
1680 idx, section_name (ebl, idx)); in check_dynamic()
1686 idx, section_name (ebl, idx), cnt); in check_dynamic()
1698 idx, section_name (ebl, idx), cnt, in check_dynamic()
1708 idx, section_name (ebl, idx), cnt, in check_dynamic()
1726 idx, section_name (ebl, idx), cnt); in check_dynamic()
1739 idx, section_name (ebl, idx), cnt, in check_dynamic()
1782 idx, section_name (ebl, idx), cnt, in check_dynamic()
1797 idx, section_name (ebl, idx), cnt, in check_dynamic()
1817 idx, section_name (ebl, idx), in check_dynamic()
1829 idx, section_name (ebl, idx), in check_dynamic()
1838 idx, section_name (ebl, idx)); in check_dynamic()
1845 idx, section_name (ebl, idx), in check_dynamic()
1853 idx, section_name (ebl, idx), in check_dynamic()
1860 idx, section_name (ebl, idx), in check_dynamic()
1870 idx, section_name (ebl, idx), "DT_GNU_PRELINKED"); in check_dynamic()
1874 idx, section_name (ebl, idx), "DT_CHECKSUM"); in check_dynamic()
1880 idx, section_name (ebl, idx)); in check_dynamic()
1891 idx, section_name (ebl, idx), "DT_GNU_CONFLICTSZ"); in check_dynamic()
1895 idx, section_name (ebl, idx), "DT_GNU_LIBLISTSZ"); in check_dynamic()
1899 idx, section_name (ebl, idx), "DT_GNU_CONFLICT"); in check_dynamic()
1903 idx, section_name (ebl, idx), "DT_GNU_LIBLIST"); in check_dynamic()
1909 check_symtab_shndx (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_symtab_shndx() argument
1915 idx, section_name (ebl, idx)); in check_symtab_shndx()
1925 idx, section_name (ebl, idx)); in check_symtab_shndx()
1929 idx, section_name (ebl, idx), shdr->sh_link); in check_symtab_shndx()
1937 idx, section_name (ebl, idx)); in check_symtab_shndx()
1946 idx, section_name (ebl, idx)); in check_symtab_shndx()
1950 idx, section_name (ebl, idx)); in check_symtab_shndx()
1952 for (size_t cnt = idx + 1; cnt < shnum; ++cnt) in check_symtab_shndx()
1961 idx, section_name (ebl, idx), in check_symtab_shndx()
1967 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_symtab_shndx()
1971 idx, section_name (ebl, idx)); in check_symtab_shndx()
2002 check_sysv_hash (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, in check_sysv_hash() argument
2011 idx, section_name (ebl, idx), (long int) shdr->sh_size, in check_sysv_hash()
2022 idx, section_name (ebl, idx)); in check_sysv_hash()
2037 idx, section_name (ebl, idx), cnt - 2); in check_sysv_hash()
2047 idx, section_name (ebl, idx), cnt - 2 - nbucket); in check_sysv_hash()
2053 check_sysv_hash64 (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, in check_sysv_hash64() argument
2062 idx, section_name (ebl, idx), (long int) shdr->sh_size, in check_sysv_hash64()
2073 idx, section_name (ebl, idx)); in check_sysv_hash64()
2088 idx, section_name (ebl, idx), cnt - 2); in check_sysv_hash64()
2098 idx, section_name (ebl, idx), (uint64_t) cnt - 2 - nbucket); in check_sysv_hash64()
2104 check_gnu_hash (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, int idx, in check_gnu_hash() argument
2111 idx, section_name (ebl, idx)); in check_gnu_hash()
2123 idx, section_name (ebl, idx), bitmask_words); in check_gnu_hash()
2139 idx, section_name (ebl, idx), (long int) shdr->sh_size, in check_gnu_hash()
2148 idx, section_name (ebl, idx), shift); in check_gnu_hash()
2182 idx, section_name (ebl, idx), cnt - (4 + bitmask_words)); in check_gnu_hash()
2203 idx, section_name (ebl, idx), symidx, in check_gnu_hash()
2216 idx, section_name (ebl, idx), symidx, in check_gnu_hash()
2225 idx, section_name (ebl, idx), symidx, in check_gnu_hash()
2255 idx, section_name (ebl, idx), cnt - (4 + bitmask_words)); in check_gnu_hash()
2260 idx, section_name (ebl, idx), cnt - (4 + bitmask_words)); in check_gnu_hash()
2266 idx, section_name (ebl, idx)); in check_gnu_hash()
2273 check_hash (int tag, Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_hash() argument
2279 idx, section_name (ebl, idx)); in check_hash()
2283 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_hash()
2287 idx, section_name (ebl, idx)); in check_hash()
2297 idx, section_name (ebl, idx)); in check_hash()
2301 idx, section_name (ebl, idx), shdr->sh_link); in check_hash()
2309 idx, section_name (ebl, idx)); in check_hash()
2313 idx, section_name (ebl, idx)); in check_hash()
2319 idx, section_name (ebl, idx)); in check_hash()
2327 check_sysv_hash64 (ebl, shdr, data, idx, symshdr); in check_hash()
2329 check_sysv_hash (ebl, shdr, data, idx, symshdr); in check_hash()
2333 check_gnu_hash (ebl, shdr, data, idx, symshdr); in check_hash()
2569 check_null (Ebl *ebl, GElf_Shdr *shdr, int idx) in check_null() argument
2574 idx, section_name (ebl, idx), #name) in check_null()
2580 TEST (size, idx != 0); in check_null()
2581 TEST (link, idx != 0); in check_null()
2589 check_group (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_group() argument
2595 idx, section_name (ebl, idx)); in check_group()
2605 idx, section_name (ebl, idx), elf_errmsg (-1)); in check_group()
2611 idx, section_name (ebl, idx)); in check_group()
2617 idx, section_name (ebl, idx)); in check_group()
2621 idx, section_name (ebl, idx)); in check_group()
2629 idx, section_name (ebl, idx)); in check_group()
2633 idx, section_name (ebl, idx)); in check_group()
2638 idx, section_name (ebl, idx)); in check_group()
2643 idx, section_name (ebl, idx)); in check_group()
2646 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_group()
2649 idx, section_name (ebl, idx), elf_errmsg (-1)); in check_group()
2659 idx, section_name (ebl, idx)); in check_group()
2664 idx, section_name (ebl, idx)); in check_group()
2670 idx, section_name (ebl, idx)); in check_group()
2674 idx, section_name (ebl, idx)); in check_group()
2684 idx, section_name (ebl, idx)); in check_group()
2697 idx, section_name (ebl, idx), cnt / elsize); in check_group()
2706 idx, section_name (ebl, idx), cnt / elsize, in check_group()
2713 idx, section_name (ebl, idx), in check_group()
2719 idx, section_name (ebl, idx), cnt / elsize, in check_group()
2888 check_versym (Ebl *ebl, int idx) in check_versym() argument
2890 Elf_Scn *scn = elf_getscn (ebl->elf, idx); in check_versym()
2901 idx, section_name (ebl, idx)); in check_versym()
2916 idx, section_name (ebl, idx), in check_versym()
2928 idx, section_name (ebl, idx), in check_versym()
2944 idx, section_name (ebl, idx), cnt); in check_versym()
2960 idx, section_name (ebl, idx), cnt); in check_versym()
2968 idx, section_name (ebl, idx), cnt); in check_versym()
2982 idx, section_name (ebl, idx), cnt, (int) *versym); in check_versym()
2987 idx, section_name (ebl, idx), cnt, (int) *versym); in check_versym()
2997 idx, section_name (ebl, idx), cnt, (int) *versym); in check_versym()
3045 check_verneed (Ebl *ebl, GElf_Shdr *shdr, int idx) in check_verneed() argument
3058 idx, section_name (ebl, idx)); in check_verneed()
3060 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_verneed()
3064 idx, section_name (ebl, idx)); in check_verneed()
3083 idx, section_name (ebl, idx), cnt, (int) need->vn_version); in check_verneed()
3090 idx, section_name (ebl, idx), cnt); in check_verneed()
3100 idx, section_name (ebl, idx), cnt); in check_verneed()
3108 idx, section_name (ebl, idx), cnt); in check_verneed()
3120 idx, section_name (ebl, idx), need->vn_cnt - cnt2, cnt); in check_verneed()
3128 idx, section_name (ebl, idx), need->vn_cnt - cnt2, cnt); in check_verneed()
3137 idx, section_name (ebl, idx), need->vn_cnt - cnt2, in check_verneed()
3146 idx, section_name (ebl, idx), need->vn_cnt - cnt2, in check_verneed()
3157 idx, section_name (ebl, idx), need->vn_cnt - cnt2, cnt); in check_verneed()
3174 idx, section_name (ebl, idx), cnt); in check_verneed()
3182 idx, section_name (ebl, idx), cnt); in check_verneed()
3192 check_verdef (Ebl *ebl, GElf_Shdr *shdr, int idx) in check_verdef() argument
3205 idx, section_name (ebl, idx)); in check_verdef()
3207 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_verdef()
3212 idx, section_name (ebl, idx)); in check_verdef()
3244 idx, section_name (ebl, idx)); in check_verdef()
3248 idx, section_name (ebl, idx)); in check_verdef()
3254 idx, section_name (ebl, idx), cnt); in check_verdef()
3259 idx, section_name (ebl, idx), cnt, (int) def->vd_version); in check_verdef()
3266 idx, section_name (ebl, idx), cnt); in check_verdef()
3281 idx, section_name (ebl, idx), cnt); in check_verdef()
3288 idx, section_name (ebl, idx), cnt, (int) hashval, in check_verdef()
3296 idx, section_name (ebl, idx), cnt, name); in check_verdef()
3316 idx, section_name (ebl, idx), cnt); in check_verdef()
3333 idx, section_name (ebl, idx), cnt); in check_verdef()
3350 idx, section_name (ebl, idx), cnt); in check_verdef()
3358 idx, section_name (ebl, idx), cnt); in check_verdef()
3365 idx, section_name (ebl, idx)); in check_verdef()
3382 idx, section_name (ebl, idx), namelist->name); in check_verdef()
3389 check_attributes (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_attributes() argument
3394 idx, section_name (ebl, idx)); in check_attributes()
3398 Elf_Data *data = elf_rawdata (elf_getscn (ebl->elf, idx), NULL); in check_attributes()
3402 idx, section_name (ebl, idx)); in check_attributes()
3415 idx, section_name (ebl, idx)); in check_attributes()
3432 idx, section_name (ebl, idx), pos (p)); in check_attributes()
3441 idx, section_name (ebl, idx), pos (p)); in check_attributes()
3453 idx, section_name (ebl, idx), pos (p)); in check_attributes()
3470 idx, section_name (ebl, idx), pos (chunk)); in check_attributes()
3479 idx, section_name (ebl, idx), pos (q)); in check_attributes()
3488 idx, section_name (ebl, idx), pos (q)); in check_attributes()
3503 idx, section_name (ebl, idx), pos (q)); in check_attributes()
3514 idx, section_name (ebl, idx), pos (chunk), subsection_tag); in check_attributes()
3532 idx, section_name (ebl, idx), pos (chunk)); in check_attributes()
3543 idx, section_name (ebl, idx), pos (chunk)); in check_attributes()
3556 idx, section_name (ebl, idx), pos (chunk), tag); in check_attributes()
3560 idx, section_name (ebl, idx), pos (chunk), in check_attributes()
3570 idx, section_name (ebl, idx), pos (p), name); in check_attributes()
3576 idx, section_name (ebl, idx), pos (p)); in check_attributes()
3635 #define IS_KNOWN_SPECIAL(idx, string, prefix) \ argument
3636 (special_sections[idx].namelen == sizeof string - (prefix ? 1 : 0) \
3637 && !memcmp (special_sections[idx].name, string, \
4044 for (size_t idx = 0; in check_sections() local
4045 idx < databits->d_size && ! bad; in check_sections()
4046 idx++) in check_sections()
4047 bad = ((char *) databits->d_buf)[idx] != 0; in check_sections()
4360 check_note_section (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) in check_note_section() argument
4365 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL); in check_note_section()
4369 idx, section_name (ebl, idx)); in check_note_section()
4377 idx, section_name (ebl, idx)); in check_note_section()
4379 GElf_Off notes_size = check_note_data (ebl, ehdr, data, idx, 0, 0); in check_note_section()
4383 idx, section_name (ebl, idx)); in check_note_section()
4387 idx, section_name (ebl, idx), shdr->sh_size - notes_size); in check_note_section()