Home | History | Annotate | Download | only in src

Lines Matching refs:sh_entsize

639   size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_SYM, 1, EV_CURRENT);
640 if (shdr->sh_entsize != sh_entsize)
678 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt)
1077 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0)
1088 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt)
1108 if (shdr->sh_entsize != 0
1110 / shdr->sh_entsize))
1120 if (reldata != NULL && shdr->sh_entsize != 0)
1122 inner < shdr->sh_size / shdr->sh_entsize;
1162 if (shdr->sh_entsize != 0
1163 && dyn->d_un.d_val > shdr->sh_size / shdr->sh_entsize)
1173 if (reldata != NULL && shdr->sh_entsize != 0)
1175 inner < shdr->sh_size / shdr->sh_entsize;
1271 size_t sh_entsize = gelf_fsize (ebl->elf, reltype, 1, EV_CURRENT);
1272 if (shdr->sh_entsize != sh_entsize)
1307 && dyndata != NULL && dynshdr->sh_entsize != 0)
1308 for (size_t j = 0; j < dynshdr->sh_size / dynshdr->sh_entsize; ++j)
1495 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT);
1496 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1546 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT);
1547 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1653 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_DYN, 1, EV_CURRENT);
1654 if (shdr->sh_entsize != sh_entsize)
1664 for (cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1934 if (shdr->sh_entsize != sizeof (Elf32_Word))
1940 && shdr->sh_entsize != 0
1941 && symshdr->sh_entsize != 0
1942 && (shdr->sh_size / shdr->sh_entsize
1943 < symshdr->sh_size / symshdr->sh_entsize))
2008 if (shdr->sh_size < (2 + nbucket + nchain) * shdr->sh_entsize)
2012 (long int) ((2 + nbucket + nchain) * shdr->sh_entsize));
2016 if (symshdr != NULL && symshdr->sh_entsize != 0)
2018 size_t symsize = symshdr->sh_size / symshdr->sh_entsize;
2020 if (nchain > symshdr->sh_size / symshdr->sh_entsize)
2059 if (shdr->sh_size < (2 + nbucket + nchain) * shdr->sh_entsize)
2063 (long int) ((2 + nbucket + nchain) * shdr->sh_entsize));
2067 if (symshdr != NULL && symshdr->sh_entsize != 0)
2069 sh_entsize;
2071 if (nchain > symshdr->sh_size / symshdr->sh_entsize)
2155 if (symshdr != NULL && symshdr->sh_entsize != 0)
2156 maxidx = MIN (maxidx, symshdr->sh_size / symshdr->sh_entsize);
2256 else if (symshdr != NULL && symshdr->sh_entsize != 0
2257 && symidx > symshdr->sh_size / symshdr->sh_entsize)
2303 if (shdr->sh_entsize != (tag == SHT_GNU_HASH
2315 if (shdr->sh_size < (tag == SHT_GNU_HASH ? 4 : 2) * (shdr->sh_entsize ?: 4))
2380 || sym_shdr == NULL || sym_shdr->sh_entsize == 0)
2396 uint32_t nentries = sym_shdr->sh_size / sym_shdr->sh_entsize;
2450 if (hash_shdr->sh_entsize == sizeof (Elf32_Word))
2485 else if (hash_shdr->sh_entsize == sizeof (Elf64_Word))
2525 hash section [%2zu] '%s' invalid sh_entsize\n"),
2641 && shdr->sh_entsize != elf32_fsize (ELF_T_WORD, 1, EV_CURRENT))
2809 if (data == NULL || shdr->sh_entsize == 0)
2813 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; ++i)
2825 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; ++i)
2923 if (shdr->sh_entsize != 0 && symshdr->sh_entsize != 0
2924 && (shdr->sh_size / shdr->sh_entsize
2925 != symshdr->sh_size / symshdr->sh_entsize))
2932 if (symdata == NULL || shdr->sh_entsize == 0)
2936 for (int cnt = 1; (size_t) cnt < shdr->sh_size / shdr->sh_entsize; ++cnt)
3024 && data != NULL && shdr->sh_entsize != 0)
3025 for (size_t j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j)
3678 if (shdr->sh_entsize != 0)
3859 if (shdr->sh_entsize != 0 && shdr->sh_size % shdr->sh_entsize)
3948 if ((shdr->sh_flags & SHF_MERGE) != 0 && shdr->sh_entsize == 0)