Home
last modified time | relevance | path

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

123

/external/elfutils/libelf/
Delf32_updatenull.c215 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; in __elfw2()
227 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
230 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_RELA, 1); in __elfw2()
241 sh_entsize = elf_typesize (32, ELF_T_WORD, 1); in __elfw2()
244 sh_entsize = SH_ENTSIZE_HASH (ehdr); in __elfw2()
247 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_DYN, 1); in __elfw2()
250 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_REL, 1); in __elfw2()
253 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_SYM, 1); in __elfw2()
256 sh_entsize = elf_typesize (LIBELFBITS, ELF_T_MOVE, 1); in __elfw2()
259 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()
Dgelf_getshdr.c79 COPY (sh_entsize); in gelf_getshdr()
/external/elfutils/src/
Delflint.c639 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_SYM, 1, EV_CURRENT); in check_symtab() local
640 if (shdr->sh_entsize != sh_entsize) in check_symtab()
678 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
1077 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0) in is_rel_dyn()
1088 for (cnt = 1; cnt < rcshdr->sh_size / rcshdr->sh_entsize; ++cnt) in is_rel_dyn()
1108 if (shdr->sh_entsize != 0 in is_rel_dyn()
1110 / shdr->sh_entsize)) in is_rel_dyn()
1120 if (reldata != NULL && shdr->sh_entsize != 0) in is_rel_dyn()
1122 inner < shdr->sh_size / shdr->sh_entsize; in is_rel_dyn()
1162 if (shdr->sh_entsize != 0 in is_rel_dyn()
[all …]
Delfcmp.c314 || shdr1->sh_entsize != shdr2->sh_entsize) in main()
337 if (shdr1->sh_entsize == 0) in main()
344 for (int ndx = 0; ndx < (int) (shdr1->sh_size / shdr1->sh_entsize); in main()
521 && hash_content_equivalent (shdr1->sh_entsize, data1, data2)) in main()
772 if (shdr->sh_type == SHT_REL && shdr->sh_entsize != 0) in search_for_copy_reloc()
773 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc()
786 else if (shdr->sh_entsize != 0) in search_for_copy_reloc()
787 for (int ndx = 0; ndx < (int) (shdr->sh_size / shdr->sh_entsize); in search_for_copy_reloc()
Dunstrip.c442 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
453 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
479 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
480 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
512 switch (shdr->sh_entsize) in adjust_relocs()
534 const size_t nent = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
535 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
552 data->d_size = nent * shdr->sh_entsize; in adjust_relocs()
596 const size_t nsym = shdr->sh_size / shdr->sh_entsize; in add_new_section_symbols()
600 shdr->sh_size += added * shdr->sh_entsize; in add_new_section_symbols()
[all …]
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()
551 for (int i = 0; (size_t) i < shdr->sh_size / shdr->sh_entsize; in check_rel()
Dobjdump.c417 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT); in show_relocs_rel() local
418 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rel()
438 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT); in show_relocs_rela() local
439 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rela()
Dstrip.c1095 shdr_info[cnt].shdr.sh_entsize = 0; in handle_elf()
1158 shdr_info[cnt].shdr.sh_entsize = 0; in handle_elf()
1493 && shdr_info[cnt].shdr.sh_entsize != 0); in handle_elf()
1495 / shdr_info[cnt].shdr.sh_entsize); in handle_elf()
1561 if (shdr_info[cnt].shdr.sh_entsize == sizeof (Elf32_Word)) in handle_elf()
1622 elf_assert (shdr_info[cnt].shdr.sh_entsize in handle_elf()
1934 if (shdr->sh_entsize == 0) in handle_elf()
1937 size_t nrels = shdr->sh_size / shdr->sh_entsize; in handle_elf()
1969 shdr->sh_size = reldata->d_size = nrels * shdr->sh_entsize; in handle_elf()
/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…
38 RUN: not llvm-readobj --dyn-symbols %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefi…
/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()
/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/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/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 && shdr->sh_entsize != 0) in find_dyn_got()
103 for (unsigned int j = 0; j < shdr->sh_size / shdr->sh_entsize; ++j) in find_dyn_got()
/external/llvm/include/llvm/Object/
DELFTypes.h106 Elf_Word sh_entsize; // Size of records contained within the section
121 Elf_Xword sh_entsize; // Size of records contained within the section
126 using Elf_Shdr_Base<ELFT>::sh_entsize;
131 if (sh_entsize == 0)
133 return sh_size / sh_entsize;
DELF.h128 if (Sec->sh_entsize != sizeof(Elf_Sym)) in symbol_begin()
147 if (sec->sh_entsize != sizeof(Elf_Rela)) in rela_begin()
164 if (sec->sh_entsize != sizeof(Elf_Rel)) in rel_begin()
448 (Entry * Section->sh_entsize)); in getEntry()
/external/elfutils/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()
Ddisasm_cb.c96 int nsyms = shdr->sh_size / shdr->sh_entsize; in read_symtab_exec()
/external/elfutils/libdwfl/
Ddwfl_module_getdwarf.c610 if (shdr->sh_entsize == 0) in load_symtab()
616 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab()
626 if (shdr->sh_entsize == 0) in load_symtab()
631 *syments = shdr->sh_size / shdr->sh_entsize; in load_symtab()
1006 mod->aux_syments = shdr->sh_size / shdr->sh_entsize; in find_aux_sym()
1200 if (shdr == NULL || shdr->sh_entsize == 0 in find_symtab()
1201 || mod->syments > mod->symdata->d_size / shdr->sh_entsize in find_symtab()
1284 if (mod->aux_syments > mod->aux_symdata->d_size / shdr->sh_entsize in find_symtab()
/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/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