Home
last modified time | relevance | path

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

1234567

/external/elfutils/libelf/
Delf_strptr.c118 size_t sh_size = 0; in elf_strptr() local
130 sh_size = shdr->sh_size; in elf_strptr()
135 sh_size = strscn->zdata_size; in elf_strptr()
138 if (unlikely (offset >= sh_size)) in elf_strptr()
156 sh_size = shdr->sh_size; in elf_strptr()
161 sh_size = strscn->zdata_size; in elf_strptr()
164 if (unlikely (offset >= sh_size)) in elf_strptr()
186 if (likely (validate_str (strscn->zdata_base, offset, sh_size))) in elf_strptr()
204 if (likely (validate_str (strscn->rawdata_base, offset, sh_size))) in elf_strptr()
Delf32_updatenull.c188 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2()
320 > shdr->sh_size)) in __elfw2()
350 ? shdr->sh_offset + shdr->sh_size : 0)); in __elfw2()
385 update_if_changed (shdr->sh_size, in __elfw2()
403 ElfW2(LIBELFBITS,SizeWord) sh_size; in __elfw2()
405 sh_size = shdr->sh_size; in __elfw2()
412 sh_size = chdr->ch_size; in __elfw2()
415 if (unlikely (sh_size % shdr->sh_entsize != 0)) in __elfw2()
Delf_compress_gnu.c126 shdr->sh_size = new_size; in elf_compress_gnu()
131 shdr->sh_size = new_size; in elf_compress_gnu()
191 shdr->sh_size = size; in elf_compress_gnu()
196 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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DELFEmitter.cpp367 To.sh_size = *From->ShSize; in overrideFields()
449 SHeader.sh_size = *RawSec->Size; in initSectionHeaders()
469 SHeader.sh_size = S->Size; in initSectionHeaders()
633 SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size); in initSymtabSectionHeader()
640 SHeader.sh_size = arrayDataSize(makeArrayRef(Syms)); in initSymtabSectionHeader()
658 SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size); in initStrtabSectionHeader()
661 SHeader.sh_size = STB.getSize(); in initStrtabSectionHeader()
700 Ret.push_back({H.sh_offset, H.sh_size, H.sh_type, H.sh_addralign}); in getPhdrFragments()
775 SHeader.sh_size = writeContent(OS, Section.Content, Section.Size); in writeSectionContent()
800 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent()
[all …]
/external/elfutils/src/
Dunstrip.c430 newshdr->sh_size = data->d_size; in update_sh_size()
459 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
473 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
503 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
504 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
505 if (data->d_size != shdr->sh_size) in adjust_relocs()
565 const size_t nent = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
566 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
633 const size_t nsym = shdr->sh_size / shdr->sh_entsize; in add_new_section_symbols()
637 shdr->sh_size += added * shdr->sh_entsize; in add_new_section_symbols()
[all …]
Delflint.c437 if (shdr->sh_size == 0) in check_elf_header()
441 shnum = shdr->sh_size; in check_elf_header()
661 else if (shdr->sh_info > shdr->sh_size / sh_entsize) in check_symtab()
699 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
712 else if (sym->st_name >= strshdr->sh_size) in check_symtab()
806 if (st_value - sh_addr > destshdr->sh_size) in check_symtab()
837 + sym->st_size) > destshdr->sh_size) in check_symtab()
856 if (st_value > destshdr->sh_size) in check_symtab()
862 > destshdr->sh_size) in check_symtab()
904 + destshdr->sh_size)) in check_symtab()
[all …]
Dsize.c443 digits - 2, shdr->sh_size, in show_sysv()
446 total += shdr->sh_size; in show_sysv()
495 shdr->sh_size, elf_strptr (elf, shstrndx, shdr->sh_name)); in show_sysv_one_line()
497 total += shdr->sh_size; in show_sysv_one_line()
541 textsize += shdr->sh_size; in show_bsd()
543 bsssize += shdr->sh_size; in show_bsd()
545 datasize += shdr->sh_size; in show_bsd()
Delfcompress.c235 float new = shdr->sh_size; in compress_section()
238 orig_size, shdr->sh_size, (new / orig) * 100); in compress_section()
546 ? shdr->sh_size : 0); in process_file()
700 uint64_t size = shdr->sh_size; in process_file()
922 size_t size = shdr->sh_size; in process_file()
1031 shdr->sh_size = data->d_size; in process_file()
1076 shstrtab_size = shdr->sh_size; in process_file()
1137 last_offset += shdr->sh_size; in process_file()
1217 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()
155 size_t new_size = newshdr->sh_size; in main()
208 size_t newer_size = newershdr->sh_size; in main()
Delfstrmerge.c287 ? shdr->sh_size : 0); in main()
325 if (newstrtabdata.d_size >= shdrstrshdr->sh_size + strtabshdr->sh_size) in main()
461 newshdr.sh_size = shdr->sh_size; in main()
597 newshdr.sh_size = newdata->d_size; in main()
612 last_offset += newshdr.sh_size; in main()
618 newshdr.sh_size = 0; in main()
/external/swiftshader/third_party/subzero/src/
DIceELFSection.cpp30 Header.sh_size += MoreData.size(); in appendData()
38 Header.sh_size += MoreData.size(); in appendData()
43 Header.sh_size += NumBytes; in appendZeros()
55 Header.sh_size += RelocAddrSize; in appendRelocationOffset()
60 Elf64_Xword AlignDiff = Utils::OffsetToAlignment(Header.sh_size, Align); in padToAlignment()
65 Header.sh_size += AlignDiff; in padToAlignment()
DIceELFSection.h69 void setSize(Elf64_Xword sh_size) { Header.sh_size = sh_size; } in setSize() argument
70 SizeT getCurrentSize() const { return Header.sh_size; } in getCurrentSize()
322 Str.writeELFXword<IsELF64>(Header.sh_size); in writeHeader()
/external/llvm-project/llvm/test/tools/llvm-size/
Dinvalid-symbol-table-size.test2 ## whose sh_size isn't a multiple of the symbol size (sh_size % sizeof(Elf_Sym) != 0).
14 # CHECK: error: {{.*}} section [index 1] has an invalid sh_size ([[SIZE]]) which is not a multiple …
/external/llvm-project/llvm/lib/ObjectYAML/
DELFEmitter.cpp578 To.sh_size = *From->ShSize; in overrideFields()
610 LocationCounter += Header.sh_size; in initImplicitHeader()
719 SHeader.sh_size = *RawSec->Size; in initSectionHeaders()
726 LocationCounter += SHeader.sh_size; in initSectionHeaders()
732 SHeader.sh_size = writeContent(CBA, Sec->Content, Sec->Size); in initSectionHeaders()
780 LocationCounter += SHeader.sh_size; in initSectionHeaders()
927 SHeader.sh_size = writeContent(CBA, RawSec->Content, RawSec->Size); in initSymtabSectionHeader()
933 SHeader.sh_size = Syms.size() * sizeof(Elf_Sym); in initSymtabSectionHeader()
934 CBA.write((const char *)Syms.data(), SHeader.sh_size); in initSymtabSectionHeader()
954 SHeader.sh_size = writeContent(CBA, RawSec->Content, RawSec->Size); in initStrtabSectionHeader()
[all …]
/external/llvm-project/llvm/test/tools/llvm-nm/
Dinvalid-symbol-table-size.test2 ## whose sh_size isn't a multiple of the symbol size (sh_size % sizeof(Elf_Sym) != 0).
16 # CHECK: error: {{.*}} section [index [[INDEX]]] has an invalid sh_size ([[SIZE]]) which is not a m…
/external/llvm-project/llvm/test/tools/llvm-objdump/
Dinvalid-symbol-table-size.test2 ## whose sh_size isn't a multiple of the symbol size (sh_size % sizeof(Elf_Sym) != 0).
16 # CHECK: error: {{.*}} section [index [[INDEX]]] has an invalid sh_size ([[SIZE]]) which is not a m…
/external/llvm/include/llvm/Object/
DELF.h124 uint64_t Size = Sec->sh_size; in symbol_end()
140 uint64_t Size = sec->sh_size; in rela_end()
157 uint64_t Size = sec->sh_size; in rel_end()
247 uintX_t Size = Sec->sh_size; in getSectionContentsAsArray()
315 return SectionHeaderTable->sh_size; in getNumSections()
431 uint64_t Size = Section->sh_size; in getStringTable()
446 uintX_t Size = Section.sh_size; in getSHNDXTable()
460 if (NumSymbols != (SymTable.sh_size / sizeof(Elf_Sym))) in getSHNDXTable()
/external/google-breakpad/src/common/linux/
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.cc219 google_breakpad::StabsReader reader(stabs, stab_section->sh_size, in LoadStabs()
220 stabstr, stabstr_section->sh_size, in LoadStabs()
305 file_context.AddSectionToSectionMap(name, contents, section->sh_size); in LoadDwarf()
406 size_t cfi_size = section->sh_size; in LoadDwarfCFI()
682 const char *names_end = names + section_names->sh_size; in LoadSymbols()
754 symtab_section->sh_size, in LoadSymbols()
756 strtab_section->sh_size, in LoadSymbols()
782 dynsym_section->sh_size, in LoadSymbols()
784 dynstr_section->sh_size, in LoadSymbols()
867 gnu_debuglink_section->sh_size, in LoadSymbols()
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()
/external/elfutils/libdwfl/
Ddwfl_report_elf.c122 end = prev_shdr->sh_addr + prev_shdr->sh_size; in __libdwfl_elf_address_range()
133 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_elf_address_range()
141 if (first || end < shdr->sh_addr + shdr->sh_size) in __libdwfl_elf_address_range()
142 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_elf_address_range()
Drelocate.c534 || unlikely (tshdr->sh_size == 0)) in relocate_section()
584 if (unlikely (shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
589 if (unlikely (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
603 if (unlikely (phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
608 if (unlikely (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
626 size_t nrels = shdr->sh_size / sh_entsize; in relocate_section()
739 shdr->sh_size = reldata->d_size = nrels * sh_entsize; in relocate_section()
777 && shdr->sh_size != 0) in __libdwfl_relocate()
/external/toybox/toys/posix/
Dfile.c138 int sh_type, sh_size; local
143 sh_size = elf_int(shdr+8+12*(bits+1), 4);
144 if (sh_offset>TT.len || sh_size>TT.len-sh_offset) goto bad;
156 while (sh_size >= 3*4) { // Don't try to read a truncated entry.
168 if (notesz > sh_size) goto bad;
186 sh_size -= notesz;
/external/llvm-project/lld/test/ELF/invalid/
Ddynamic-section-broken.test19 ## The .dynamic section has invalid sh_size, which is too short and
23 # ERR2: error: {{.*}}.so: section [index 1] has an invalid sh_size (1) which is not a multiple of i…

1234567