Home
last modified time | relevance | path

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

1234

/external/elfutils/libelf/
Delf32_updatenull.c211 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2()
223 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
226 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_RELA, 1); in __elfw2()
237 sh_entsize = elf_typesize (32, ELF_T_WORD, 1); in __elfw2()
240 sh_entsize = SH_ENTSIZE_HASH (ehdr); in __elfw2()
243 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_DYN, 1); in __elfw2()
246 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_REL, 1); in __elfw2()
249 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
252 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_MOVE, 1); in __elfw2()
255 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.c150 CONVERT_TO (shdr[cnt].sh_entsize, notcvt[cnt].sh_entsize); in ElfW2()
198 CONVERT (shdr[cnt].sh_entsize); in ElfW2()
/external/elfutils/src/
Dfindtextrel.c266 size_t entries = (shdr->sh_entsize == 0 in process_file()
267 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
417 size_t entries = (shdr->sh_entsize == 0 in process_file()
418 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
441 size_t entries = (shdr->sh_entsize == 0 in process_file()
442 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
536 size_t entries = (shdr->sh_entsize == 0 in check_rel()
537 ? 0 : shdr->sh_size / shdr->sh_entsize); in check_rel()
Delflint.c656 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_SYM, 1, EV_CURRENT); in check_symtab() local
657 if (shdr->sh_entsize != sh_entsize) in check_symtab()
695 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
1094 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0) in is_rel_dyn()
1105 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt) in is_rel_dyn()
1125 if (shdr->sh_entsize != 0 in is_rel_dyn()
1127 / shdr->sh_entsize)) in is_rel_dyn()
1137 if (reldata != NULL && shdr->sh_entsize != 0) in is_rel_dyn()
1139 inner < shdr->sh_size / shdr->sh_entsize; in is_rel_dyn()
1179 if (shdr->sh_entsize != 0 in is_rel_dyn()
[all …]
Dunstrip.c450 if (shdr->sh_entsize == 0) in adjust_relocs()
453 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
464 if (shdr->sh_entsize == 0) in adjust_relocs()
467 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
493 if (shdr->sh_entsize == 0) in adjust_relocs()
495 if (symshdr->sh_entsize == 0) in adjust_relocs()
497 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
498 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
530 switch (shdr->sh_entsize) in adjust_relocs()
552 if (shdr->sh_entsize == 0) in adjust_relocs()
[all …]
Delfcmp.c328 || shdr1->sh_entsize != shdr2->sh_entsize) in main()
351 if (shdr1->sh_entsize == 0) in main()
358 for (int ndx = 0; ndx < (int) (shdr1->sh_size / shdr1->sh_entsize); in main()
537 && hash_content_equivalent (shdr1->sh_entsize, data1, data2)) in main()
774 if (shdr->sh_type == SHT_REL && shdr->sh_entsize != 0) in search_for_copy_reloc()
775 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc()
788 else if (shdr->sh_entsize != 0) in search_for_copy_reloc()
789 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc()
/external/swiftshader/third_party/LLVM/test/Scripts/
Delf-dump65 self.sh_entsize = f.readWord()
77 print " ('sh_entsize', %s)" % common_dump.HexDump(self.sh_entsize)
96 entries = section.sh_size[0] // section.sh_entsize[0]
99 f.seek(section.sh_offset[0] + index * section.sh_entsize[0])
119 entries = section.sh_size[0] // section.sh_entsize[0]
122 f.seek(section.sh_offset[0] + index * section.sh_entsize[0])
/external/swiftshader/third_party/llvm-7.0/llvm/test/Object/
Dinvalid.test12 Test the sh_entsize are invalid
13 RUN: llvm-readobj -s %p/Inputs/invalid-sh_entsize.elf | FileCheck --check-prefix=SECTION %s
40 RUN: not llvm-readobj -t %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-S…
41 INVALID-SYM-SIZE: invalid sh_entsize
43 RUN: not llvm-readobj --dyn-symbols %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefi…
54 INVALID-SYMTAB-SIZE: size is not a multiple of sh_entsize
/external/llvm/test/Object/
Dinvalid.test9 Test the sh_entsize are invalid
10 RUN: llvm-readobj -s %p/Inputs/invalid-sh_entsize.elf | FileCheck --check-prefix=SECTION %s
37 RUN: not llvm-readobj -t %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-S…
40 RUN: not llvm-readobj --dyn-symbols %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefi…
/external/swiftshader/third_party/LLVM/test/MC/ELF/
Dentsize.ll3 ; Test that constant mergeable strings have sh_entsize set.
32 ; 64-NEXT: ('sh_entsize', 0x0000000000000001)
43 ; 64-NEXT: ('sh_entsize', 0x0000000000000008)
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp249 SHeader.sh_entsize = 0; in initSectionHeaders()
271 SHeader.sh_entsize = sizeof(Elf_Sym); in initSymtabSectionHeader()
352 SHeader.sh_entsize = 0; in writeSectionContent()
372 SHeader.sh_entsize = IsRela ? sizeof(Elf_Rela) : sizeof(Elf_Rel); in writeSectionContent()
373 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent()
410 SHeader.sh_entsize = sizeof(Elf_Word); in writeSectionContent()
411 SHeader.sh_size = SHeader.sh_entsize * Section.Members.size(); in writeSectionContent()
441 SHeader.sh_entsize = sizeof(Flags); in writeSectionContent()
442 SHeader.sh_size = SHeader.sh_entsize; in writeSectionContent()
/external/elfutils/tests/
Dupdate4.c136 shdr->sh_entsize = 1; in main()
172 shdr->sh_entsize = 1; in main()
208 shdr->sh_entsize = 1; in main()
244 shdr->sh_entsize = 1; in main()
281 shdr->sh_entsize = 1; in main()
Daddsections.c191 shdr->sh_entsize = 0; in add_sections()
238 shdr->sh_entsize = 0; in add_sections()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/
Dyaml2elf.cpp289 SHeader.sh_entsize = 0; in initSectionHeaders()
315 SHeader.sh_entsize = sizeof(Elf_Sym); in initSymtabSectionHeader()
465 SHeader.sh_entsize = sizeof(Elf_Relr); in writeSectionContent()
467 SHeader.sh_entsize = sizeof(Elf_Dyn); in writeSectionContent()
469 SHeader.sh_entsize = 0; in writeSectionContent()
489 SHeader.sh_entsize = IsRela ? sizeof(Elf_Rela) : sizeof(Elf_Rel); in writeSectionContent()
490 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent()
528 SHeader.sh_entsize = sizeof(Elf_Word); in writeSectionContent()
529 SHeader.sh_size = SHeader.sh_entsize * Section.Members.size(); in writeSectionContent()
559 SHeader.sh_entsize = sizeof(Flags); in writeSectionContent()
[all …]
/external/google-breakpad/src/common/linux/
Dsynth_elf_unittest.cc251 EXPECT_EQ(0U, shdr[0].sh_entsize); in TYPED_TEST()
262 EXPECT_EQ(0U, shdr[1].sh_entsize); in TYPED_TEST()
326 EXPECT_EQ(0U, shdr[0].sh_entsize); in TYPED_TEST()
337 EXPECT_EQ(0U, shdr[1].sh_entsize); in TYPED_TEST()
348 EXPECT_EQ(0U, shdr[2].sh_entsize); in TYPED_TEST()
359 EXPECT_EQ(0U, shdr[3].sh_entsize); in TYPED_TEST()
/external/u-boot/tools/
Dmips-relocs.c197 unsigned int i, j, i_rel_shdr, sh_type, sh_entsize, sh_entries; in main() local
351 sh_entsize = shdr_field(i, sh_entsize); in main()
352 sh_entries = shdr_field(i, sh_size) / sh_entsize; in main()
373 err = parse_fn(elf + sh_offset + (j * sh_entsize)); in main()
/external/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()
/external/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.c155 assert (shdr->sh_entsize == 0); in binary_end()
236 shdr->sh_entsize = sizeof (Elf32_Word); in binary_end()
281 shdr->sh_entsize = gelf_fsize (ctx->out.elf, ELF_T_SYM, 1, EV_CURRENT); in binary_end()
308 assert (shdr->sh_entsize == 0); in binary_end()
/external/bcc/src/lua/bpf/
Delf.lua214 if data.d_size % header[0].sh_entsize > 0 then
217 local symcount = tonumber(data.d_size / header[0].sh_entsize)
/external/elfutils/libdwfl/
Ddwfl_module_getdwarf.c617 if (shdr->sh_entsize == 0) in load_symtab()
623 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab()
633 if (shdr->sh_entsize == 0) in load_symtab()
638 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab()
1010 if (shdr->sh_entsize == 0) in find_aux_sym()
1015 mod->aux_syments = shdr->sh_size / shdr->sh_entsize; in find_aux_sym()
1209 if (shdr == NULL || shdr->sh_entsize == 0 in find_symtab()
1210 || mod->syments > mod->symdata->d_size / shdr->sh_entsize in find_symtab()
1293 if (mod->aux_syments > mod->aux_symdata->d_size / shdr->sh_entsize in find_symtab()
/external/llvm/include/llvm/Object/
DELFTypes.h157 Elf_Word sh_entsize; // Size of records contained within the section
172 Elf_Xword sh_entsize; // Size of records contained within the section
177 using Elf_Shdr_Base<ELFT>::sh_entsize;
182 if (sh_entsize == 0)
184 return sh_size / sh_entsize;

1234