Home | History | Annotate | Download | only in src

Lines Matching refs:idx

320 section_name (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
325 shdr = gelf_getshdr (elf_getscn (ebl->elf, idx), &shdr_mem);
522 /* Check that there is a section group section with index < IDX which
523 contains section IDX and that there is exactly one. */
525 check_scn_group (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
527 if (scnref[idx] == 0)
533 for (cnt = idx + 1; cnt < shnum; ++cnt)
560 if (grpdata[inner] == (Elf32_Word) idx)
568 idx, section_name (ebl, ehdr, idx));
572 idx, section_name (ebl, ehdr, idx),
579 check_symtab (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
584 Elf_Scn *scn = elf_getscn (ebl->elf, idx);
596 idx, section_name (ebl, ehdr, idx));
603 idx, section_name (ebl, ehdr, idx));
612 if (cnt != (size_t) idx)
623 && xndxshdr->sh_link == (GElf_Word) idx)
643 idx, section_name (ebl, ehdr, idx), 0, elf_errmsg (-1));
648 idx, section_name (ebl, ehdr, idx), "st_name");
651 idx, section_name (ebl, ehdr, idx), "st_value");
654 idx, section_name (ebl, ehdr, idx), "st_size");
657 idx, section_name (ebl, ehdr, idx), "st_info");
660 idx, section_name (ebl, ehdr, idx), "st_other");
663 idx, section_name (ebl, ehdr, idx), "st_shndx");
676 idx, section_name (ebl, ehdr, idx), cnt, elf_errmsg (-1));
684 idx, section_name (ebl, ehdr, idx), cnt);
697 idx, section_name (ebl, ehdr, idx), cnt);
715 idx, section_name (ebl, ehdr, idx), cnt);
721 idx, section_name (ebl, ehdr, idx), cnt);
726 idx, section_name (ebl, ehdr, idx), cnt);
734 idx, section_name (ebl, ehdr, idx), cnt);
738 idx, section_name (ebl, ehdr, idx), cnt);
742 idx, section_name (ebl, ehdr, idx), cnt);
757 idx, section_name (ebl, ehdr, idx), cnt);
762 idx, section_name (ebl, ehdr, idx), cnt,
770 idx, section_name (ebl, ehdr, idx), cnt,
780 idx, section_name (ebl, ehdr, idx), cnt,
786 idx, section_name (ebl, ehdr, idx), cnt,
807 idx, section_name (ebl, ehdr, idx), cnt);
815 idx, section_name (ebl, ehdr, idx), cnt,
822 idx, section_name (ebl, ehdr, idx), cnt,
829 idx, section_name (ebl, ehdr, idx), cnt,
842 idx, section_name (ebl, ehdr, idx), cnt);
849 idx, section_name (ebl, ehdr, idx), cnt);
856 idx, section_name (ebl, ehdr, idx), cnt);
885 idx, section_name (ebl, ehdr, idx),
892 idx, section_name (ebl, ehdr, idx),
903 idx, section_name (ebl, ehdr, idx));
922 idx, section_name (ebl, ehdr, idx),
929 idx, section_name (ebl, ehdr, idx),
943 is_rel_dyn (Ebl *ebl, GElf_Ehdr *ehdr, int idx, GElf_Shdr *shdr, bool rela)
950 if (strcmp (section_name (ebl, ehdr, idx), rela ? ".rela.dyn" : ".rel.dyn"))
982 idx, section_name (ebl, ehdr, idx),
996 check_rela (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
1008 scn = elf_getscn (ebl->elf, idx);
1016 idx, section_name (ebl, ehdr, idx));
1023 idx, section_name (ebl, ehdr, idx));
1033 reldyn = is_rel_dyn (ebl, ehdr, idx, shdr, true);
1037 idx, section_name (ebl, ehdr, idx));
1045 idx, section_name (ebl, ehdr, idx));
1052 idx, section_name (ebl, ehdr, idx));
1059 idx, section_name (ebl, ehdr, idx));
1076 idx, section_name (ebl, ehdr, idx), cnt, elf_errmsg (-1));
1082 idx, section_name (ebl, ehdr, idx), cnt);
1086 idx, section_name (ebl, ehdr, idx), cnt);
1094 idx, section_name (ebl, ehdr, idx), cnt);
1109 idx, section_name (ebl, ehdr, idx), cnt,
1124 idx, section_name (ebl, ehdr, idx), cnt);
1131 check_rel (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
1143 scn = elf_getscn (ebl->elf, idx);
1151 idx, section_name (ebl, ehdr, idx));
1158 idx, section_name (ebl, ehdr, idx));
1168 reldyn = is_rel_dyn (ebl, ehdr, idx, shdr, false);
1172 idx, section_name (ebl, ehdr, idx));
1180 idx, section_name (ebl, ehdr, idx));
1187 idx, section_name (ebl, ehdr, idx));
1194 idx, section_name (ebl, ehdr, idx));
1211 idx, section_name (ebl, ehdr, idx), cnt, elf_errmsg (-1));
1217 idx, section_name (ebl, ehdr, idx), cnt);
1221 idx, section_name (ebl, ehdr, idx), cnt);
1229 idx, section_name (ebl, ehdr, idx), cnt);
1244 idx, section_name (ebl, ehdr, idx), cnt,
1260 idx, section_name (ebl, ehdr, idx), cnt);
1271 check_dynamic (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
1330 scn = elf_getscn (ebl->elf, idx);
1338 idx, section_name (ebl, ehdr, idx));
1347 idx, section_name (ebl, ehdr, idx));
1352 idx, section_name (ebl, ehdr, idx));
1356 idx, section_name (ebl, ehdr, idx));
1369 idx, section_name (ebl, ehdr, idx), cnt, elf_errmsg (-1));
1377 idx, section_name (ebl, ehdr, idx));
1383 idx, section_name (ebl, ehdr, idx), cnt);
1395 idx, section_name (ebl, ehdr, idx), cnt,
1405 idx, section_name (ebl, ehdr, idx), cnt,
1417 idx, section_name (ebl, ehdr, idx), cnt);
1442 idx, section_name (ebl, ehdr, idx),
1454 idx, section_name (ebl, ehdr, idx),
1464 idx, section_name (ebl, ehdr, idx),
1471 idx, section_name (ebl, ehdr, idx),
1477 check_symtab_shndx (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
1489 scn = elf_getscn (ebl->elf, idx);
1499 idx, section_name (ebl, ehdr, idx));
1507 idx, section_name (ebl, ehdr, idx));
1514 idx, section_name (ebl, ehdr, idx));
1518 idx, section_name (ebl, ehdr, idx));
1520 for (cnt = idx + 1; cnt < shnum; ++cnt)
1531 idx, section_name (ebl, ehdr, idx),
1566 check_hash (Ebl *ebl, GElf_Ehdr *ehdr, int idx)
1577 scn = elf_getscn (ebl->elf, idx);
1585 idx, section_name (ebl, ehdr, idx));
1593 idx, section_name (ebl, ehdr, idx));
1598 idx, section_name (ebl, ehdr, idx));
1602 idx, section_name (ebl, ehdr, idx));
1608 idx, section_name (ebl, ehdr, idx));
1618 idx, section_name (ebl, ehdr, idx), (long int) shdr->sh_size,
1628 idx, section_name (ebl, ehdr, idx));
1634 idx, section_name (ebl, ehdr, idx), cnt - 2);
1640 idx, section_name (ebl, ehdr, idx), cnt - 2 - nbucket);
1646 check_null (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx)
1651 idx, section_name (ebl, ehdr, idx), #name)
1657 TEST (size, idx != 0);
1658 TEST (link, idx != 0);
1666 check_group (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx)
1672 idx, section_name (ebl, ehdr, idx));
1682 idx, section_name (ebl, ehdr, idx), elf_errmsg (-1));
1688 idx, section_name (ebl, ehdr, idx));
1694 idx, section_name (ebl, ehdr, idx));
1698 idx, section_name (ebl, ehdr, idx));
1703 idx, section_name (ebl, ehdr, idx));
1706 Elf_Data *data = elf_getdata (elf_getscn (ebl->elf, idx), NULL);
1709 idx, section_name (ebl, ehdr, idx), elf_errmsg (-1));
1719 idx, section_name (ebl, ehdr, idx));
1724 idx, section_name (ebl, ehdr, idx));
1730 idx, section_name (ebl, ehdr, idx));
1734 idx, section_name (ebl, ehdr, idx));
1744 idx, section_name (ebl, ehdr, idx));
1757 idx, section_name (ebl, ehdr, idx), cnt / elsize);
1768 idx, section_name (ebl, ehdr, idx), cnt / elsize,
1775 idx, section_name (ebl, ehdr, idx),
1781 idx, section_name (ebl, ehdr, idx), cnt / elsize,
1898 check_versym (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx)
1913 idx, section_name (ebl, ehdr, idx),
1922 idx, section_name (ebl, ehdr, idx),
2297 GElf_Xword idx = 0;
2298 while (idx < phdr->p_filesz)
2308 uint32_t *ptr = (uint32_t *) (notemem + idx);
2330 uint64_t *ptr = (uint64_t *) (notemem + idx);
2331 uint32_t *ptr32 = (uint32_t *) (notemem + idx);
2359 if (idx + 3 * align > phdr->p_filesz
2360 || (idx + 3 * align + ALIGNED_LEN (namesz) + ALIGNED_LEN (descsz)
2364 && idx + 3 * 4 <= phdr->p_filesz
2365 && (idx + 3 * 4 + ALIGNED_LEN (namesz32) + ALIGNED_LEN (descsz32)
2371 cnt, (size_t) (phdr->p_filesz - idx));
2401 cnt, type, idx);
2409 cnt, type, idx);
2413 idx += 3 * align + ALIGNED_LEN (namesz) + ALIGNED_LEN (descsz);