• Home
  • Raw
  • Download

Lines Matching refs:sh_size

436 	      if (shdr->sh_size == 0)  in check_elf_header()
440 shnum = shdr->sh_size; in check_elf_header()
660 else if (shdr->sh_info > shdr->sh_size / sh_entsize) in check_symtab()
698 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
711 else if (sym->st_name >= strshdr->sh_size) in check_symtab()
805 if (st_value - sh_addr > destshdr->sh_size) in check_symtab()
836 + sym->st_size) > destshdr->sh_size) in check_symtab()
855 if (st_value > destshdr->sh_size) in check_symtab()
861 > destshdr->sh_size) in check_symtab()
903 + destshdr->sh_size)) in check_symtab()
910 + destshdr->sh_size)) in check_symtab()
1017 if (!gnuld && sym->st_size != destshdr->sh_size) in check_symtab()
1022 sname, (uint64_t) destshdr->sh_size); in check_symtab()
1108 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt) in is_rel_dyn()
1129 && dyn->d_un.d_val > (shdr->sh_size in is_rel_dyn()
1142 inner < shdr->sh_size / shdr->sh_entsize; in is_rel_dyn()
1183 && dyn->d_un.d_val > shdr->sh_size / shdr->sh_entsize) in is_rel_dyn()
1195 inner < shdr->sh_size / shdr->sh_entsize; in is_rel_dyn()
1328 for (size_t j = 0; j < dynshdr->sh_size / dynshdr->sh_entsize; ++j) in check_reloc_shdr()
1395 > symshdr->sh_size)) in check_one_reloc()
1430 : destshdr->sh_addr)) >= destshdr->sh_size) in check_one_reloc()
1516 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_rela()
1567 for (size_t cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_rel()
1684 for (cnt = 0; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_dynamic()
1812 if (dyn->d_un.d_ptr >= strshdr->sh_size) in check_dynamic()
1962 && (shdr->sh_size / shdr->sh_entsize in check_symtab_shndx()
1963 < symshdr->sh_size / symshdr->sh_entsize)) in check_symtab_shndx()
2029 if (shdr->sh_size < (2ULL + nbucket + nchain) * sizeof (Elf32_Word)) in check_sysv_hash()
2033 idx, section_name (ebl, idx), (long int) shdr->sh_size, in check_sysv_hash()
2042 size_t symsize = symshdr->sh_size / symshdr->sh_entsize; in check_sysv_hash()
2044 if (nchain > symshdr->sh_size / symshdr->sh_entsize) in check_sysv_hash()
2052 Elf32_Word *end = (Elf32_Word *) ((char *) data->d_buf + shdr->sh_size); in check_sysv_hash()
2083 uint64_t maxwords = shdr->sh_size / sizeof (Elf64_Xword); in check_sysv_hash64()
2090 idx, section_name (ebl, idx), (long int) shdr->sh_size, in check_sysv_hash64()
2099 size_t symsize = symshdr->sh_size / symshdr->sh_entsize; in check_sysv_hash64()
2101 if (nchain > symshdr->sh_size / symshdr->sh_entsize) in check_sysv_hash64()
2109 Elf64_Xword *end = (Elf64_Xword *) ((char *) data->d_buf + shdr->sh_size); in check_sysv_hash64()
2169 idx, section_name (ebl, idx), (long int) shdr->sh_size, in check_gnu_hash()
2182 size_t maxidx = shdr->sh_size / sizeof (Elf32_Word) - (4 + bitmask_words in check_gnu_hash()
2186 maxidx = MIN (maxidx, symshdr->sh_size / symshdr->sh_entsize); in check_gnu_hash()
2287 && symidx > symshdr->sh_size / symshdr->sh_entsize) in check_gnu_hash()
2347 if (shdr->sh_size < (tag == SHT_GNU_HASH ? 4 : 2) * (expect_entsize ?: 4)) in check_hash()
2428 uint32_t nentries = sym_shdr->sh_size / sym_shdr->sh_entsize; in compare_hash_gnu_hash()
2645 if (shdr->sh_info >= symshdr->sh_size / gelf_fsize (ebl->elf, ELF_T_SYM, in check_group()
2855 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; ++i) in has_copy_reloc()
2867 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; ++i) in has_copy_reloc()
2966 && (shdr->sh_size / shdr->sh_entsize in check_versym()
2967 != symshdr->sh_size / symshdr->sh_entsize)) in check_versym()
2978 for (int cnt = 1; (size_t) cnt < shdr->sh_size / shdr->sh_entsize; ++cnt) in check_versym()
3067 for (size_t j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j) in unknown_dependency_p()
3445 if (shdr->sh_size == 0) in check_attributes()
3733 if (shdr->sh_size != 0 && ehdr->e_shnum != 0) in check_sections()
3909 if (shdr->sh_entsize != 0 && shdr->sh_size % shdr->sh_entsize) in check_sections()
4066 || shdr->sh_size == 0)) in check_sections()
4072 < shdr->sh_offset + shdr->sh_size) in check_sections()
4099 shdr->sh_size, in check_sections()
4102 || databits->d_size != shdr->sh_size); in check_sections()
4119 (shdr->sh_offset == end && shdr->sh_size != 0)) in check_sections()
4458 if (shdr->sh_size == 0) in check_note_section()
4480 else if (notes_size != shdr->sh_size) in check_note_section()
4483 idx, section_name (ebl, idx), shdr->sh_size - notes_size); in check_note_section()
4566 if (phdr->p_memsz != shdr->sh_size) in check_program_header()
4683 if (phdr->p_memsz != shdr->sh_size) in check_program_header()