Home
last modified time | relevance | path

Searched refs:sh_size (Results 1 – 25 of 84) sorted by relevance

1234

/external/elfutils/src/src/
Dunstrip.c389 newshdr->sh_size = data->d_size; in update_sh_size()
411 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()
450 assert (data->d_size == shdr->sh_size); 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()
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 …]
Delflint.c449 if (shdr->sh_size == 0) in check_elf_header()
453 shnum = shdr->sh_size; in check_elf_header()
675 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
688 else if (sym->st_name >= strshdr->sh_size) in check_symtab()
782 if (st_value - sh_addr > destshdr->sh_size) in check_symtab()
809 + sym->st_size) > destshdr->sh_size) in check_symtab()
828 if (st_value > destshdr->sh_size) in check_symtab()
834 > destshdr->sh_size) in check_symtab()
870 + destshdr->sh_size)) in check_symtab()
877 + destshdr->sh_size)) in check_symtab()
[all …]
Dsize.c459 digits - 2, shdr->sh_size, in show_sysv()
462 total += shdr->sh_size; in show_sysv()
508 shdr->sh_size, elf_strptr (elf, shstrndx, shdr->sh_name)); in show_sysv_one_line()
510 total += shdr->sh_size; in show_sysv_one_line()
554 textsize += shdr->sh_size; in show_bsd()
556 bsssize += shdr->sh_size; in show_bsd()
558 datasize += shdr->sh_size; in show_bsd()
Delfcmp.c281 newp->to = shdr1->sh_offset + shdr1->sh_size; in main()
309 || shdr1->sh_size != shdr2->sh_size in main()
338 for (int ndx = 0; ndx < (int) (shdr1->sh_size / shdr1->sh_entsize); 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()
/external/llvm/include/llvm/Object/
DELF.h374 (const char *)(base() + sec->sh_offset + sec->sh_size)); in end_rela()
384 (const char *)(base() + sec->sh_offset + sec->sh_size)); in end_rel()
437 unsigned vd_size = sec->sh_size; // Size of section in bytes in LoadVersionDefs()
462 unsigned vn_size = sec->sh_size; // Size of section in bytes in LoadVersionNeeds()
540 if (Sec->sh_offset + Sec->sh_size > Buf.size()) in getSectionContents()
543 return makeArrayRef(Start, Sec->sh_size); in getSectionContents()
598 if (strtab[sh->sh_size - 1] != 0) in VerifyStrTab()
608 return SectionHeaderTable->sh_size; in getNumSections()
679 DynSymRegion.Size = Sec.sh_size; in ELFFile()
683 DynStrRegion.Size = DynStr->sh_size; in ELFFile()
[all …]
/external/libunwind/src/
Delfxx.c143 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_size); in elf_w()
144 if (shdr.sh_offset + shdr.sh_size > size) { in elf_w()
146 (unsigned long) (shdr.sh_offset + shdr.sh_size), in elf_w()
182 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_size); in elf_w()
188 unw_word_t symtab_end = shdr.sh_offset + shdr.sh_size; in elf_w()
298 if (str_shdr->sh_offset + str_shdr->sh_size > ei->u.mapped.size) { in elf_w()
300 (unsigned long) (str_shdr->sh_offset + str_shdr->sh_size), in elf_w()
326 Elf_W(Sym)* symtab_end = (Elf_W(Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
496 if (shdr->sh_offset + shdr->sh_size > ei->size) { in elf_w()
498 (unsigned long) shdr->sh_offset + shdr->sh_size, in elf_w()
[all …]
/external/elfutils/src/libdwfl/
Drelocate.c293 if (unlikely (tshdr->sh_type == SHT_NOBITS) || unlikely (tshdr->sh_size == 0)) in relocate_section()
325 if (unlikely ((shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
327 || (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
340 if (unlikely ((phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
342 || (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
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()
646 && shdr->sh_size != 0) in __libdwfl_relocate()
Ddwfl_report_elf.c118 end = prev_shdr->sh_addr + prev_shdr->sh_size; in __libdwfl_elf_address_range()
129 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_elf_address_range()
137 if (first || end < shdr->sh_addr + shdr->sh_size) in __libdwfl_elf_address_range()
138 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_elf_address_range()
/external/google-breakpad/src/common/linux/
Delfutils.cc65 const char *names_end = names + section_names->sh_size; in FindElfClassSection()
72 if (section != NULL && section->sh_size > 0) { in FindElfClassSection()
74 *section_size = section->sh_size; in FindElfClassSection()
Dsynth_elf_unittest.cc247 EXPECT_EQ(0U, shdr[0].sh_size); in TYPED_TEST()
258 EXPECT_EQ(kStringTableSize, shdr[1].sh_size); in TYPED_TEST()
322 EXPECT_EQ(0U, shdr[0].sh_size); in TYPED_TEST()
333 EXPECT_EQ(4094U, shdr[1].sh_size); in TYPED_TEST()
344 EXPECT_EQ(16U, shdr[2].sh_size); in TYPED_TEST()
355 EXPECT_EQ(kStringTableSize, shdr[3].sh_size); in TYPED_TEST()
Ddump_symbols.cc192 google_breakpad::StabsReader reader(stabs, stab_section->sh_size, in LoadStabs()
193 stabstr, stabstr_section->sh_size, in LoadStabs()
254 file_context.AddSectionToSectionMap(name, contents, section->sh_size); in LoadDwarf()
341 size_t cfi_size = section->sh_size; in LoadDwarfCFI()
610 const char *names_end = names + section_names->sh_size; in LoadSymbols()
672 dynsym_section->sh_size, in LoadSymbols()
674 dynstr_section->sh_size, in LoadSymbols()
746 gnu_debuglink_section->sh_size, in LoadSymbols()
/external/elfutils/src/libelf/
Delf32_updatenull.c182 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2()
292 > shdr->sh_size)) in __elfw2()
323 ? shdr->sh_size : 0)); in __elfw2()
358 update_if_changed (shdr->sh_size, (GElf_Word) offset, in __elfw2()
370 && unlikely (shdr->sh_size % shdr->sh_entsize != 0) in __elfw2()
Dgelf_update_shdr.c66 || unlikely (src->sh_size > 0xffffffffull) in gelf_update_shdr()
81 COPY (sh_size); in gelf_update_shdr()
Delf_strptr.c98 if (unlikely (offset >= strscn->shdr.e32->sh_size))
114 if (unlikely (offset >= strscn->shdr.e64->sh_size))
Delf32_updatefile.c67 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
68 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
71 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
72 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
321 assert ((GElf_Off) dl->data.d.d_off <= shdr->sh_size); in __elfw2()
322 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2()
386 last_position = scn_start + shdr->sh_size; in __elfw2()
765 last_offset = scn_start + shdr->sh_size; in __elfw2()
Delf_begin.c158 + offset))->sh_size; in get_shnum()
168 + offset))->sh_size, in get_shnum()
173 + offsetof (Elf32_Shdr, sh_size)) in get_shnum()
208 + offset))->sh_size; in get_shnum()
216 + offset))->sh_size, in get_shnum()
221 + offsetof (Elf64_Shdr, sh_size)) in get_shnum()
340 && likely (elf->state.elf32.shdr[cnt].sh_size in file_read_elf()
431 && likely (elf->state.elf64.shdr[cnt].sh_size in file_read_elf()
Delf32_getshdr.c135 CONVERT_TO (shdr[cnt].sh_size, notcvt[cnt].sh_size); in ElfW2()
181 CONVERT (shdr[cnt].sh_size); in ElfW2()
/external/valgrind/VEX/switchback/
Dlinker.c523 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel);
649 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela);
1008 if (debug_linker>1) fprintf(stderr, "size=%4d ", (int)shdr[i].sh_size );
1012 ehdrC + shdr[i].sh_offset + shdr[i].sh_size - 1);
1056 nent = shdr[i].sh_size / sizeof(Elf_Sym);
1060 (Long)(shdr[i].sh_size % sizeof(Elf_Sym))
1062 if (0 != shdr[i].sh_size % sizeof(Elf_Sym)) {
1168 if (is_bss && shdr[i].sh_size > 0) {
1172 char* zspace = calloc(1, shdr[i].sh_size);
1176 zspace, (Long)shdr[i].sh_size);
[all …]
/external/ltrace/
Dltrace-elf.c120 || data->d_off || data->d_size != shdr->sh_size) in elf_loaddata()
156 && addr < shdr->sh_addr + shdr->sh_size; in inside_p()
435 *countp = shdr->sh_size / shdr->sh_entsize; in read_symbol_table()
455 || shdr2.sh_size != data->d_size || data->d_off) { 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()
614 lte->dyn_sz = shdr.sh_size; in ltelf_read_elf()
624 for (j = 0; j < shdr.sh_size / shdr.sh_entsize; ++j) { in ltelf_read_elf()
[all …]
/external/valgrind/VEX/unused/
Dlinker.c427 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); in do_Elf_Rel_relocations()
553 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela); in do_Elf_Rela_relocations()
845 if (debug_linker>1) fprintf(stderr, "size=%4d ", (int)shdr[i].sh_size ); in ocVerifyImage_ELF()
849 ehdrC + shdr[i].sh_offset + shdr[i].sh_size - 1); in ocVerifyImage_ELF()
893 nent = shdr[i].sh_size / sizeof(Elf_Sym); in ocVerifyImage_ELF()
897 shdr[i].sh_size % sizeof(Elf_Sym) in ocVerifyImage_ELF()
899 if (0 != shdr[i].sh_size % sizeof(Elf_Sym)) { in ocVerifyImage_ELF()
1005 if (is_bss && shdr[i].sh_size > 0) { in ocGetNames_ELF()
1009 char* zspace = calloc(1, shdr[i].sh_size); in ocGetNames_ELF()
1032 if (kind != SECTIONKIND_OTHER && shdr[i].sh_size > 0) { in ocGetNames_ELF()
[all …]
/external/google-breakpad/src/common/solaris/
Dfile_id.cc122 if (text_section != NULL && text_section->sh_size > 0) { in FindElfTextSection()
124 *text_size = text_section->sh_size; in FindElfTextSection()
/external/elfutils/src/tests/
Dasm-tst1.c212 if ((cnt != 3 && shdr->sh_size != 0) in main()
213 || (cnt == 3 && shdr->sh_size != 23)) in main()
Dasm-tst2.c232 if ((cnt == 1 && shdr->sh_size != (strlen ("one") + 1 in main()
235 || (cnt == 2 && shdr->sh_size != 17)) in main()
/external/llvm/tools/yaml2obj/
Dyaml2elf.cpp280 SHeader.sh_size = arrayDataSize(makeArrayRef(Syms)); in initSymtabSectionHeader()
291 SHeader.sh_size = STB.data().size(); in initStrtabSectionHeader()
333 SHeader.sh_size = Section.Size; in writeSectionContent()
355 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent()
396 SHeader.sh_size = SHeader.sh_entsize * Section.Members.size(); in writeSectionContent()

1234