/third_party/elfutils/libelf/ |
H A D | elf32_updatenull.c | 213 ElfW2(LIBELFBITS,SizeWord) sh_entsize = shdr->sh_entsize; in __elfw2() 221 /* Set the sh_entsize value if we can reliably detect it. */ in __elfw2() 225 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2() 228 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_RELA, 1); in __elfw2() 239 sh_entsize = elf_typesize (32, ELF_T_WORD, 1); in __elfw2() 242 sh_entsize = SH_ENTSIZE_HASH (ehdr); in __elfw2() 245 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_DYN, 1); in __elfw2() 248 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_REL, 1); in __elfw2() 251 sh_entsize in __elfw2() [all...] |
H A D | gelf_update_shdr.c | 68 || unlikely (src->sh_entsize > 0xffffffffull)) in gelf_update_shdr() 85 COPY (sh_entsize); in gelf_update_shdr()
|
H A D | elf32_getshdr.c | 148 CONVERT_TO (shdr[cnt].sh_entsize, notcvt[cnt].sh_entsize); in ElfW2() 196 CONVERT (shdr[cnt].sh_entsize); in ElfW2()
|
H A D | gelf_getshdr.c | 79 COPY (sh_entsize); in gelf_getshdr()
|
/third_party/elfutils/src/ |
H A D | findtextrel.c | 267 size_t entries = (shdr->sh_entsize == 0 in process_file() 268 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file() 407 size_t entries = (shdr->sh_entsize == 0 in process_file() 408 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file() 431 size_t entries = (shdr->sh_entsize == 0 in process_file() 432 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file() 526 size_t entries = (shdr->sh_entsize == 0 in check_rel() 527 ? 0 : shdr->sh_size / shdr->sh_entsize); in check_rel()
|
H A D | elflint.c | 655 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_SYM, 1, EV_CURRENT); in check_symtab() local 656 if (shdr->sh_entsize != sh_entsize) in check_symtab() 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() 1097 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0) in is_rel_dyn() 1108 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt) in is_rel_dyn() 1128 if (shdr->sh_entsize != 0 in is_rel_dyn() 1130 / shdr->sh_entsize)) in is_rel_dyn() 1140 if (reldata != NULL && shdr->sh_entsize ! in is_rel_dyn() 1291 size_t sh_entsize = gelf_fsize (ebl->elf, reltype, 1, EV_CURRENT); check_reloc_shdr() local 1515 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT); check_rela() local 1566 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT); check_rel() local 1673 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_DYN, 1, EV_CURRENT); check_dynamic() local [all...] |
H A D | unstrip.c | 458 if (shdr->sh_entsize == 0) in adjust_relocs() 459 error_exit (0, "REL section cannot have zero sh_entsize"); in adjust_relocs() 461 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs() 473 if (shdr->sh_entsize == 0) in adjust_relocs() 474 error_exit (0, "RELA section cannot have zero sh_entsize"); in adjust_relocs() 476 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs() 503 if (shdr->sh_entsize == 0) in adjust_relocs() 504 error_exit (0, "HASH section cannot have zero sh_entsize"); in adjust_relocs() 505 if (symshdr->sh_entsize == 0) in adjust_relocs() 506 error_exit (0, "Symbol table cannot have zero sh_entsize"); in adjust_relocs() [all...] |
H A D | elfcmp.c | 327 || shdr1->sh_entsize != shdr2->sh_entsize) in main() 350 if (shdr1->sh_entsize == 0) in main() 352 _("symbol table [%zu] in '%s' has zero sh_entsize"), in main() 357 for (int ndx = 0; ndx < (int) (shdr1->sh_size / shdr1->sh_entsize); in main() 536 && hash_content_equivalent (shdr1->sh_entsize, data1, data2)) in main() 773 if (shdr->sh_type == SHT_REL && shdr->sh_entsize != 0) in search_for_copy_reloc() 774 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc() 787 else if (shdr->sh_entsize != 0) in search_for_copy_reloc() 788 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc() [all...] |
H A D | arlib.c | 254 if (shdr->sh_entsize == 0) in arlib_add_symbols() 257 int nsyms = shdr->sh_size / shdr->sh_entsize; in arlib_add_symbols()
|
H A D | objdump.c | 404 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT); in show_relocs_rel() local 405 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rel() 425 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT); in show_relocs_rela() local 426 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rela()
|
/third_party/elfutils/tests/ |
H A D | update4.c | 137 shdr->sh_entsize = 1; in main() 173 shdr->sh_entsize = 1; in main() 209 shdr->sh_entsize = 1; in main() 245 shdr->sh_entsize = 1; in main() 282 shdr->sh_entsize = 1; in main()
|
H A D | addsections.c | 210 shdr->sh_entsize = 0; in add_sections() 257 shdr->sh_entsize = 0; in add_sections()
|
H A D | fillfile.c | 94 shdr->sh_entsize = 0; in create_strtab() 155 shdr->sh_entsize = 1; in add_data_section()
|
/third_party/elfutils/backends/ |
H A D | sparc_symbol.c | 94 && scn_shdr.sh_entsize != 0) in sparc_check_special_section() 98 for (size_t i = 0; i < data->d_size / scn_shdr.sh_entsize; ++i) in sparc_check_special_section()
|
H A D | alpha_symbol.c | 107 && scn_shdr.sh_entsize != 0) in alpha_check_special_section() 112 for (size_t i = 0; i < data->d_size / scn_shdr.sh_entsize; ++i) in alpha_check_special_section()
|
H A D | ppc_symbol.c | 116 && shdr->sh_entsize != 0) in find_dyn_got() 117 for (unsigned int j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j) in find_dyn_got()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
H A D | ELFEmitter.cpp | 454 SHeader.sh_entsize = *Sec->EntSize; in initSectionHeaders() 468 SHeader.sh_entsize = 0; in initSectionHeaders() 624 SHeader.sh_entsize = (YAMLSec && YAMLSec->EntSize) in initSymtabSectionHeader() 665 SHeader.sh_entsize = *YAMLSec->EntSize; in initStrtabSectionHeader() 778 SHeader.sh_entsize = *Section.EntSize; in writeSectionContent() 799 SHeader.sh_entsize = IsRela ? sizeof(Elf_Rela) : sizeof(Elf_Rel); in writeSectionContent() 800 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent() 838 SHeader.sh_entsize = in writeSectionContent() 869 SHeader.sh_entsize = Shndx.EntSize ? (uint64_t)*Shndx.EntSize : 4; in writeSectionContent() 870 SHeader.sh_size = Shndx.Entries.size() * SHeader.sh_entsize; in writeSectionContent() [all...] |
/third_party/elfutils/libasm/ |
H A D | disasm_cb.c | 96 if (shdr->sh_entsize == 0) in read_symtab_exec() 98 int nsyms = shdr->sh_size / shdr->sh_entsize; in read_symtab_exec()
|
H A D | asm_end.c | 152 assert (shdr->sh_entsize == 0); in binary_end() 233 shdr->sh_entsize = sizeof (Elf32_Word); in binary_end() 278 shdr->sh_entsize = gelf_fsize (ctx->out.elf, ELF_T_SYM, 1, EV_CURRENT); in binary_end() 305 assert (shdr->sh_entsize == 0); in binary_end()
|
/third_party/elfutils/libdwfl/ |
H A D | dwfl_module_getdwarf.c | 616 if (shdr->sh_entsize == 0) in load_symtab() 622 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab() 632 if (shdr->sh_entsize == 0) in load_symtab() 637 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab() 1009 if (shdr->sh_entsize == 0) in find_aux_sym() 1014 mod->aux_syments = shdr->sh_size / shdr->sh_entsize; in find_aux_sym() 1208 if (shdr == NULL || shdr->sh_entsize == 0 in find_symtab() 1209 || mod->syments > mod->symdata->d_size / shdr->sh_entsize in find_symtab() 1292 if (mod->aux_syments > mod->aux_symdata->d_size / shdr->sh_entsize in find_symtab()
|
/third_party/libbpf/src/ |
H A D | linker.c | 377 sec->shdr->sh_entsize = 0; in init_output_elf() 417 sec->shdr->sh_entsize = sizeof(Elf64_Sym); in init_output_elf() 769 if (sec->shdr->sh_entsize != sizeof(Elf64_Sym)) in linker_sanity_check_elf_symtab() 771 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_symtab() 786 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab() 843 if (sec->shdr->sh_entsize != sizeof(Elf64_Rel)) in linker_sanity_check_elf_relos() 845 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_relos() 883 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_relos() 1023 shdr->sh_entsize = src_sec->shdr->sh_entsize; in init_sec() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
H A D | ELF.h | 393 if (Sec->sh_entsize != sizeof(T) && sizeof(T) != 1) in getSectionContentsAsArray() 395 " has an invalid sh_entsize: " + Twine(Sec->sh_entsize)); in getSectionContentsAsArray() 403 ") which is not a multiple of its sh_entsize (" + in getSectionContentsAsArray() 404 Twine(Sec->sh_entsize) + ")"); in getSectionContentsAsArray() 572 if (sizeof(T) != Section->sh_entsize) in getEntry() 574 " has invalid sh_entsize: expected " + Twine(sizeof(T)) + in getEntry() 575 ", but got " + Twine(Section->sh_entsize)); in getEntry()
|
H A D | ELFTypes.h | 131 Elf_Word sh_entsize; // Size of records contained within the section member 146 Elf_Xword sh_entsize; // Size of records contained within the section member 151 using Elf_Shdr_Base<ELFT>::sh_entsize; 156 if (sh_entsize == 0) in getEntityCount() 158 return sh_size / sh_entsize; in getEntityCount()
|
/third_party/libabigail/src/ |
H A D | abg-symtab-reader.cc | 225 if (symtab_sheader.sh_entsize == 0) in load_() 232 symtab_sheader.sh_size / symtab_sheader.sh_entsize; in load_() 691 symtab_sheader.sh_size / symtab_sheader.sh_entsize;
|
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceELFSection.h | 55 Header.sh_entsize = ShEntsize; in ELFSection() 191 return (LocalSymbols.size() + GlobalSymbols.size()) * Header.sh_entsize; in getSectionDataSize() 326 Str.writeELFXword<IsELF64>(Header.sh_entsize); in writeHeader()
|