Lines Matching refs:sh_entsize

655   size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_SYM, 1, EV_CURRENT);
656 if (shdr->sh_entsize != sh_entsize)
660 else if (shdr->sh_info > shdr->sh_size / sh_entsize)
698 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt)
1097 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0)
1108 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt)
1128 if (shdr->sh_entsize != 0
1130 / shdr->sh_entsize))
1140 if (reldata != NULL && shdr->sh_entsize != 0)
1142 inner < shdr->sh_size / shdr->sh_entsize;
1182 if (shdr->sh_entsize != 0
1183 && dyn->d_un.d_val > shdr->sh_size / shdr->sh_entsize)
1193 if (reldata != NULL && shdr->sh_entsize != 0)
1195 inner < shdr->sh_size / shdr->sh_entsize;
1291 size_t sh_entsize = gelf_fsize (ebl->elf, reltype, 1, EV_CURRENT);
1292 if (shdr->sh_entsize != sh_entsize)
1327 && dyndata != NULL && dynshdr->sh_entsize != 0)
1328 for (size_t j = 0; j < dynshdr->sh_size / dynshdr->sh_entsize; ++j)
1515 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT);
1516 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1566 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT);
1567 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1673 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_DYN, 1, EV_CURRENT);
1674 if (shdr->sh_entsize != sh_entsize)
1684 for (cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt)
1954 if (shdr->sh_entsize != sizeof (Elf32_Word))
1960 && shdr->sh_entsize != 0
1961 && symshdr->sh_entsize != 0
1962 && (shdr->sh_size / shdr->sh_entsize
1963 < symshdr->sh_size / symshdr->sh_entsize))
2040 if (symshdr != NULL && symshdr->sh_entsize != 0)
2042 size_t symsize = symshdr->sh_size / symshdr->sh_entsize;
2044 if (nchain > symshdr->sh_size / symshdr->sh_entsize)
2097 if (symshdr != NULL && symshdr->sh_entsize != 0)
2099 size_t symsize = symshdr->sh_size / symshdr->sh_entsize;
2101 if (nchain > symshdr->sh_size / symshdr->sh_entsize)
2185 if (symshdr != NULL && symshdr->sh_entsize != 0)
2186 maxidx = MIN (maxidx, symshdr->sh_size / symshdr->sh_entsize);
2286 else if (symshdr != NULL && symshdr->sh_entsize != 0
2287 && symidx > symshdr->sh_size / symshdr->sh_entsize)
2338 if (shdr->sh_entsize != expect_entsize)
2412 || sym_shdr == NULL || sym_shdr->sh_entsize == 0)
2428 uint32_t nentries = sym_shdr->sh_size / sym_shdr->sh_entsize;
2482 if (hash_shdr->sh_entsize == sizeof (Elf32_Word))
2517 else if (hash_shdr->sh_entsize == sizeof (Elf64_Xword))
2557 hash section [%2zu] '%s' invalid sh_entsize\n"),
2673 && shdr->sh_entsize != elf32_fsize (ELF_T_WORD, 1, EV_CURRENT))
2851 if (data == NULL || shdr->sh_entsize == 0)
2855 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; ++i)
2867 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; ++i)
2965 if (shdr->sh_entsize != 0 && symshdr->sh_entsize != 0
2966 && (shdr->sh_size / shdr->sh_entsize
2967 != symshdr->sh_size / symshdr->sh_entsize))
2974 if (symdata == NULL || shdr->sh_entsize == 0)
2978 for (int cnt = 1; (size_t) cnt < shdr->sh_size / shdr->sh_entsize; ++cnt)
3066 && data != NULL && shdr->sh_entsize != 0)
3067 for (size_t j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j)
3730 if (shdr->sh_entsize != 0)
3909 if (shdr->sh_entsize != 0 && shdr->sh_size % shdr->sh_entsize)
4006 if ((shdr->sh_flags & SHF_MERGE) != 0 && shdr->sh_entsize == 0)