Home
last modified time | relevance | path

Searched refs:sh_entsize (Results 1 – 25 of 88) sorted by relevance

1234

/third_party/elfutils/libelf/
Delf32_updatenull.c213 ElfW2(LIBELFBITS,SizeWord) sh_entsize = shdr->sh_entsize; 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 = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
254 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_MOVE, 1); in __elfw2()
257 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYMINFO, 1); in __elfw2()
[all …]
Dgelf_update_shdr.c68 || unlikely (src->sh_entsize > 0xffffffffull)) in gelf_update_shdr()
85 COPY (sh_entsize); in gelf_update_shdr()
Delf32_getshdr.c148 CONVERT_TO (shdr[cnt].sh_entsize, notcvt[cnt].sh_entsize); in ElfW2()
196 CONVERT (shdr[cnt].sh_entsize); in ElfW2()
Dgelf_getshdr.c79 COPY (sh_entsize); in gelf_getshdr()
/third_party/elfutils/src/
Delflint.c655 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 != 0) in is_rel_dyn()
1142 inner < shdr->sh_size / shdr->sh_entsize; in is_rel_dyn()
[all …]
Dfindtextrel.c267 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()
Dunstrip.c457 if (shdr->sh_entsize == 0) in adjust_relocs()
460 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
472 if (shdr->sh_entsize == 0) in adjust_relocs()
475 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
502 if (shdr->sh_entsize == 0) in adjust_relocs()
504 if (symshdr->sh_entsize == 0) in adjust_relocs()
506 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
507 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
541 switch (shdr->sh_entsize) in adjust_relocs()
563 if (shdr->sh_entsize == 0) in adjust_relocs()
[all …]
Delfcmp.c327 || shdr1->sh_entsize != shdr2->sh_entsize) in main()
350 if (shdr1->sh_entsize == 0) 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()
Darlib.c254 if (shdr->sh_entsize == 0) in arlib_add_symbols()
257 int nsyms = shdr->sh_size / shdr->sh_entsize; in arlib_add_symbols()
Dobjdump.c404 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/
Dupdate4.c137 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()
Daddsections.c210 shdr->sh_entsize = 0; in add_sections()
257 shdr->sh_entsize = 0; in add_sections()
Dfillfile.c94 shdr->sh_entsize = 0; in create_strtab()
155 shdr->sh_entsize = 1; in add_data_section()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DELFEmitter.cpp454 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/backends/
Dsparc_symbol.c94 && 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()
Dalpha_symbol.c107 && 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()
Dppc_symbol.c116 && 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/elfutils/libasm/
Ddisasm_cb.c96 if (shdr->sh_entsize == 0) in read_symtab_exec()
98 int nsyms = shdr->sh_size / shdr->sh_entsize; in read_symtab_exec()
Dasm_end.c152 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/
Ddwfl_module_getdwarf.c616 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/
Dlinker.c377 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()
1062 if (dst->shdr->sh_entsize != src->shdr->sh_entsize) { in secs_match()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceELFSection.h55 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()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DELFTypes.h131 Elf_Word sh_entsize; // Size of records contained within the section
146 Elf_Xword sh_entsize; // Size of records contained within the section
151 using Elf_Shdr_Base<ELFT>::sh_entsize;
156 if (sh_entsize == 0)
158 return sh_size / sh_entsize;
DELF.h393 if (Sec->sh_entsize != sizeof(T) && sizeof(T) != 1) in getSectionContentsAsArray()
395 " has an invalid sh_entsize: " + Twine(Sec->sh_entsize)); in getSectionContentsAsArray()
404 Twine(Sec->sh_entsize) + ")"); in getSectionContentsAsArray()
572 if (sizeof(T) != Section->sh_entsize) in getEntry()
575 ", but got " + Twine(Section->sh_entsize)); in getEntry()
/third_party/libabigail/src/
Dabg-symtab-reader.cc225 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; in add_alternative_address_lookups()

1234