Home
last modified time | relevance | path

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

1234

/external/elfutils/libelf/
Delf_strptr.c101 size_t sh_size = 0; in elf_strptr() local
113 sh_size = shdr->sh_size; in elf_strptr()
118 sh_size = strscn->zdata_size; in elf_strptr()
121 if (unlikely (offset >= sh_size)) in elf_strptr()
139 sh_size = shdr->sh_size; in elf_strptr()
144 sh_size = strscn->zdata_size; in elf_strptr()
147 if (unlikely (offset >= sh_size)) in elf_strptr()
170 '\0', sh_size - offset) != NULL)) in elf_strptr()
189 '\0', sh_size - offset) != NULL)) in elf_strptr()
Delf32_updatenull.c194 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2()
309 > shdr->sh_size)) in __elfw2()
339 ? shdr->sh_offset + shdr->sh_size : 0)); in __elfw2()
374 update_if_changed (shdr->sh_size, (GElf_Word) offset, in __elfw2()
389 ElfW2(LIBELFBITS,Word) sh_size; in __elfw2()
391 sh_size = shdr->sh_size; in __elfw2()
398 sh_size = chdr->ch_size; in __elfw2()
401 if (unlikely (sh_size % shdr->sh_entsize != 0)) in __elfw2()
Delf_compress_gnu.c124 shdr->sh_size = new_size; in elf_compress_gnu()
129 shdr->sh_size = new_size; in elf_compress_gnu()
188 shdr->sh_size = size; in elf_compress_gnu()
193 shdr->sh_size = size; in elf_compress_gnu()
Dgelf_update_shdr.c66 || unlikely (src->sh_size > 0xffffffffull) in gelf_update_shdr()
81 COPY (sh_size); in gelf_update_shdr()
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()
333 assert ((GElf_Off) dl->data.d.d_off <= shdr->sh_size); in __elfw2()
334 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2()
400 last_position = scn_start + shdr->sh_size; in __elfw2()
804 last_offset = scn_start + shdr->sh_size; in __elfw2()
Delf_compress.c442 shdr->sh_size = new_size; in elf_compress()
449 shdr->sh_size = new_size; in elf_compress()
493 shdr->sh_size = scn->zdata_size; in elf_compress()
500 shdr->sh_size = scn->zdata_size; in elf_compress()
/external/elfutils/src/
Dunstrip.c420 newshdr->sh_size = data->d_size; in update_sh_size()
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()
481 assert (data->d_size == shdr->sh_size); 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()
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 …]
Delflint.c451 if (shdr->sh_size == 0) in check_elf_header()
455 shnum = shdr->sh_size; in check_elf_header()
678 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
691 else if (sym->st_name >= strshdr->sh_size) in check_symtab()
785 if (st_value - sh_addr > destshdr->sh_size) in check_symtab()
816 + sym->st_size) > destshdr->sh_size) in check_symtab()
835 if (st_value > destshdr->sh_size) in check_symtab()
841 > destshdr->sh_size) in check_symtab()
883 + destshdr->sh_size)) in check_symtab()
890 + destshdr->sh_size)) in check_symtab()
[all …]
Dsize.c455 digits - 2, shdr->sh_size, in show_sysv()
458 total += shdr->sh_size; in show_sysv()
504 shdr->sh_size, elf_strptr (elf, shstrndx, shdr->sh_name)); in show_sysv_one_line()
506 total += shdr->sh_size; in show_sysv_one_line()
550 textsize += shdr->sh_size; in show_bsd()
552 bsssize += shdr->sh_size; in show_bsd()
554 datasize += shdr->sh_size; in show_bsd()
Delfcompress.c238 float new = shdr->sh_size; in compress_section()
241 orig_size, shdr->sh_size, (new / orig) * 100); in compress_section()
518 ? shdr->sh_size : 0); in process_file()
664 uint64_t size = shdr->sh_size; in process_file()
886 size_t size = shdr->sh_size; in process_file()
991 shdr->sh_size = data->d_size; in process_file()
1036 shstrtab_size = shdr->sh_size; in process_file()
1097 last_offset += shdr->sh_size; in process_file()
1177 symtab_size = shdr->sh_size; in process_file()
/external/elfutils/tests/
Delfputzdata.c92 size_t orig_size = shdr->sh_size; in main()
94 idx, name, shdr->sh_size); in main()
152 size_t new_size = newshdr->sh_size; in main()
204 size_t newer_size = newershdr->sh_size; in main()
Delfstrmerge.c286 ? shdr->sh_size : 0); in main()
324 if (newstrtabdata.d_size >= shdrstrshdr->sh_size + strtabshdr->sh_size) in main()
460 newshdr.sh_size = shdr->sh_size; in main()
595 newshdr.sh_size = newdata->d_size; in main()
610 last_offset += newshdr.sh_size; in main()
616 newshdr.sh_size = 0; in main()
Dasm-tst1.c212 if ((cnt != 3 && shdr->sh_size != 0) in main()
213 || (cnt == 3 && shdr->sh_size != 23)) in main()
/external/libunwind/src/
Delfxx.c145 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_size); in elf_w()
146 if (shdr.sh_offset + shdr.sh_size > size) { in elf_w()
148 (unsigned long) (shdr.sh_offset + shdr.sh_size), in elf_w()
184 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_size); in elf_w()
190 unw_word_t symtab_end = shdr.sh_offset + shdr.sh_size; in elf_w()
300 if (str_shdr->sh_offset + str_shdr->sh_size > ei->u.mapped.size) { in elf_w()
302 (unsigned long) (str_shdr->sh_offset + str_shdr->sh_size), in elf_w()
328 Elf_W(Sym)* symtab_end = (Elf_W(Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
542 if (shdr->sh_offset + shdr->sh_size > ei->u.mapped.size) { in elf_w()
544 (unsigned long) (shdr->sh_offset + shdr->sh_size), in elf_w()
[all …]
/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/libdwfl/
Drelocate.c512 || unlikely (tshdr->sh_size == 0)) in relocate_section()
556 if (unlikely ((shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
558 || (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
571 if (unlikely ((phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
573 || (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
589 size_t nrels = shdr->sh_size / sh_entsize; in relocate_section()
693 shdr->sh_size = reldata->d_size = nrels * sh_entsize; in relocate_section()
728 && 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/llvm/include/llvm/Object/
DELF.h135 uint64_t Size = Sec->sh_size; in symbol_end()
153 uint64_t Size = sec->sh_size; in rela_end()
170 uint64_t Size = sec->sh_size; in rel_end()
253 uintX_t Size = Sec->sh_size; in getSectionContentsAsArray()
321 return SectionHeaderTable->sh_size; in getNumSections()
469 uint64_t Size = Section->sh_size; in getStringTable()
484 uintX_t Size = Section.sh_size; in getSHNDXTable()
498 if (NumSymbols != (SymTable.sh_size / sizeof(Elf_Sym))) in getSHNDXTable()
/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/llvm/tools/yaml2obj/
Dyaml2elf.cpp250 SHeader.sh_size = S->Size; in initSectionHeaders()
298 SHeader.sh_size = arrayDataSize(makeArrayRef(Syms)); in initSymtabSectionHeader()
310 SHeader.sh_size = STB.data().size(); in initStrtabSectionHeader()
353 SHeader.sh_size = Section.Size; in writeSectionContent()
373 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent()
411 SHeader.sh_size = SHeader.sh_entsize * Section.Members.size(); in writeSectionContent()
442 SHeader.sh_size = SHeader.sh_entsize; in writeSectionContent()
/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()

1234