/external/elfutils/libelf/ |
D | elf32_updatenull.c | 215 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 …]
|
D | gelf_update_shdr.c | 68 || unlikely (src->sh_entsize > 0xffffffffull)) in gelf_update_shdr() 85 COPY (sh_entsize); in gelf_update_shdr()
|
D | elf32_getshdr.c | 150 CONVERT_TO (shdr[cnt].sh_entsize, notcvt[cnt].sh_entsize); in ElfW2() 198 CONVERT (shdr[cnt].sh_entsize); in ElfW2()
|
D | gelf_getshdr.c | 79 COPY (sh_entsize); in gelf_getshdr()
|
/external/elfutils/src/ |
D | elflint.c | 639 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 …]
|
D | elfcmp.c | 314 || 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()
|
D | unstrip.c | 442 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 …]
|
D | findtextrel.c | 283 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()
|
D | objdump.c | 417 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()
|
D | strip.c | 1095 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/ |
D | invalid.test | 9 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/ |
D | update4.c | 136 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/ |
D | yaml2elf.cpp | 249 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/ |
D | synth_elf_unittest.cc | 251 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/ |
D | sparc_symbol.c | 93 && 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()
|
D | alpha_symbol.c | 106 && 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()
|
D | ppc_symbol.c | 102 && 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/ |
D | ELFTypes.h | 106 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;
|
D | ELF.h | 128 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/ |
D | asm_end.c | 156 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()
|
D | disasm_cb.c | 96 int nsyms = shdr->sh_size / shdr->sh_entsize; in read_symtab_exec()
|
/external/elfutils/libdwfl/ |
D | dwfl_module_getdwarf.c | 610 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/ |
D | elf.h | 309 Elf32_Word sh_entsize; member 322 Elf64_Xword sh_entsize; /* Entry size if section holds table */ member
|
/external/ltrace/ |
D | ltrace-elf.c | 435 *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/ |
D | entsize.ll | 3 ; Test that constant mergeable strings have sh_entsize set.
|