Home
last modified time | relevance | path

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

123

/external/elfutils/src/libelf/
Delf32_updatenull.c203 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2()
210 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
213 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_RELA, 1); in __elfw2()
224 sh_entsize = elf_typesize (32, ELF_T_WORD, 1); in __elfw2()
227 sh_entsize = SH_ENTSIZE_HASH (ehdr); in __elfw2()
230 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_DYN, 1); in __elfw2()
233 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_REL, 1); in __elfw2()
236 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
239 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_MOVE, 1); in __elfw2()
242 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.c140 CONVERT_TO (shdr[cnt].sh_entsize, notcvt[cnt].sh_entsize); in ElfW2()
185 CONVERT (shdr[cnt].sh_entsize); in ElfW2()
Dgelf_getshdr.c81 COPY (sh_entsize);
/external/elfutils/src/src/
Delflint.c636 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_SYM, 1, EV_CURRENT); in check_symtab() local
637 if (shdr->sh_entsize != sh_entsize) in check_symtab()
675 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
1064 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize) in is_rel_dyn()
1070 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt) in is_rel_dyn()
1090 if (shdr->sh_entsize != 0 in is_rel_dyn()
1092 / shdr->sh_entsize)) in is_rel_dyn()
1104 inner < shdr->sh_size / shdr->sh_entsize; in is_rel_dyn()
1144 if (dyn->d_un.d_val > shdr->sh_size / shdr->sh_entsize) in is_rel_dyn()
1156 inner < shdr->sh_size / shdr->sh_entsize; in is_rel_dyn()
[all …]
Dunstrip.c411 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
422 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
448 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
449 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
480 switch (shdr->sh_entsize) in adjust_relocs()
502 const size_t nent = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
503 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
519 data->d_size = nent * shdr->sh_entsize; in adjust_relocs()
563 const size_t nsym = shdr->sh_size / shdr->sh_entsize; in add_new_section_symbols()
567 shdr->sh_size += added * shdr->sh_entsize; in add_new_section_symbols()
[all …]
Delfcmp.c313 || shdr1->sh_entsize != shdr2->sh_entsize) in main()
338 for (int ndx = 0; ndx < (int) (shdr1->sh_size / shdr1->sh_entsize); in main()
514 && hash_content_equivalent (shdr1->sh_entsize, data1, data2)) in main()
764 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc()
778 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc()
Dfindtextrel.c283 for (size_t cnt = 0; cnt < shdr->sh_size / shdr->sh_entsize; in process_file()
434 (size_t) cnt < shdr->sh_size / shdr->sh_entsize; in process_file()
457 (size_t) cnt < shdr->sh_size / shdr->sh_entsize; in process_file()
550 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; in check_rel()
Dobjdump.c421 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT); in show_relocs_rel() local
422 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rel()
442 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT); in show_relocs_rela() local
443 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rela()
/external/elfutils/src/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()
/external/llvm/include/llvm/Object/
DELF.h367 return Elf_Rela_Iter(sec->sh_entsize, in begin_rela()
373 sec->sh_entsize, in end_rela()
378 return Elf_Rel_Iter(sec->sh_entsize, in begin_rel()
383 return Elf_Rel_Iter(sec->sh_entsize, in end_rel()
680 DynSymRegion.EntSize = Sec.sh_entsize; in ELFFile()
684 DynStrRegion.EntSize = DynStr->sh_entsize; in ELFFile()
693 DynamicRegion.EntSize = Sec.sh_entsize; in ELFFile()
757 assert(SymOffset % dot_symtab_sec->sh_entsize == 0 && in getSymbolIndex()
759 return SymOffset / dot_symtab_sec->sh_entsize; in getSymbolIndex()
779 return Elf_Sym_Iter(dot_symtab_sec->sh_entsize, in begin_symbols()
[all …]
DELFTypes.h121 Elf_Word sh_entsize; // Size of records contained within the section
136 Elf_Xword sh_entsize; // Size of records contained within the section
141 using Elf_Shdr_Base<ELFT>::sh_entsize;
146 if (sh_entsize == 0)
148 return sh_size / sh_entsize;
/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/elfutils/src/backends/
Dsparc_symbol.c93 && scn_shdr.sh_entsize != 0) in sparc_check_special_section()
97 for (size_t i = 0; i < data->d_size / scn_shdr.sh_entsize; ++i) in sparc_check_special_section()
Dalpha_symbol.c106 && scn_shdr.sh_entsize != 0) in alpha_check_special_section()
111 for (size_t i = 0; i < data->d_size / scn_shdr.sh_entsize; ++i) in alpha_check_special_section()
Dppc_symbol.c102 for (unsigned int j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j) in find_dyn_got()
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp255 SHeader.sh_entsize = sizeof(Elf_Sym); in initSymtabSectionHeader()
332 SHeader.sh_entsize = 0; in writeSectionContent()
354 SHeader.sh_entsize = IsRela ? sizeof(Elf_Rela) : sizeof(Elf_Rel); in writeSectionContent()
355 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent()
395 SHeader.sh_entsize = sizeof(Elf_Word); in writeSectionContent()
396 SHeader.sh_size = SHeader.sh_entsize * Section.Members.size(); in writeSectionContent()
/external/elfutils/src/libasm/
Dasm_end.c156 assert (shdr->sh_entsize == 0); in binary_end()
237 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()
307 assert (shdr->sh_entsize == 0); in binary_end()
/external/linux-tools-perf/src/tools/perf/util/
Dsymbol-elf.c252 nr_rel_entries = shdr_rel_plt.sh_size / shdr_rel_plt.sh_entsize; in dso__synthesize_plt_symbols()
261 plt_offset += shdr_plt.sh_entsize; in dso__synthesize_plt_symbols()
266 f = symbol__new(plt_offset, shdr_plt.sh_entsize, in dso__synthesize_plt_symbols()
283 plt_offset += shdr_plt.sh_entsize; in dso__synthesize_plt_symbols()
288 f = symbol__new(plt_offset, shdr_plt.sh_entsize, in dso__synthesize_plt_symbols()
739 nr_syms = shdr.sh_size / shdr.sh_entsize; in dso__load_sym()
/external/elfutils/src/libdwfl/
Ddwfl_module_getdwarf.c578 if (shdr->sh_entsize == 0) in load_symtab()
584 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab()
594 if (shdr->sh_entsize == 0) in load_symtab()
599 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab()
966 mod->aux_syments = shdr->sh_size / shdr->sh_entsize; in find_aux_sym()
1112 if (mod->syments > mod->symdata->d_size / shdr->sh_entsize in find_symtab()
1155 if (mod->aux_syments > mod->aux_symdata->d_size / shdr->sh_entsize in find_symtab()
Drelocate.c506 size_t sh_entsize in relocate_section() local
509 size_t nrels = shdr->sh_size / sh_entsize; in relocate_section()
611 shdr->sh_size = reldata->d_size = nrels * sh_entsize; in relocate_section()
/external/kernel-headers/original/uapi/linux/
Delf.h309 Elf32_Word sh_entsize; member
322 Elf64_Xword sh_entsize; /* Entry size if section holds table */ member
/external/libvpx/libvpx/build/make/
Dobj_int_extract.c316 ENDIAN_ASSIGN_IN_PLACE(hdr32->sh_entsize); in parse_elf_section()
332 ENDIAN_ASSIGN_IN_PLACE(hdr64->sh_entsize); in parse_elf_section()
447 ofst += shdr.sh_entsize) { in parse_elf()
536 ofst += shdr.sh_entsize) { in parse_elf()
/external/ltrace/
Dltrace-elf.c435 *countp = shdr->sh_size / shdr->sh_entsize; in read_symbol_table()
509 if ((shdr->sh_size % shdr->sh_entsize) != 0) { in elf_read_relocs()
512 shdr->sh_size, shdr->sh_entsize); in elf_read_relocs()
516 GElf_Xword relplt_count = shdr->sh_size / shdr->sh_entsize; in elf_read_relocs()
555 for (j = 0; j < shdr.sh_size / shdr.sh_entsize; ++j) { in elf_load_dynamic_entry()
624 for (j = 0; j < shdr.sh_size / shdr.sh_entsize; ++j) { in ltelf_read_elf()
/external/llvm/test/MC/ELF/
Dentsize.ll3 ; Test that constant mergeable strings have sh_entsize set.

123