/external/elfutils/libelf/ |
D | elf_strptr.c | 118 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()
|
D | elf32_updatenull.c | 184 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2() 304 > shdr->sh_size)) in __elfw2() 334 ? shdr->sh_offset + shdr->sh_size : 0)); in __elfw2() 369 update_if_changed (shdr->sh_size, (GElf_Word) offset, in __elfw2() 384 ElfW2(LIBELFBITS,Word) sh_size; in __elfw2() 386 sh_size = shdr->sh_size; in __elfw2() 393 sh_size = chdr->ch_size; in __elfw2() 396 if (unlikely (sh_size % shdr->sh_entsize != 0)) in __elfw2()
|
D | elf_compress_gnu.c | 126 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()
|
D | gelf_update_shdr.c | 66 || unlikely (src->sh_size > 0xffffffffull) in gelf_update_shdr() 81 COPY (sh_size); in gelf_update_shdr()
|
/external/elfutils/src/ |
D | unstrip.c | 428 newshdr->sh_size = data->d_size; in update_sh_size() 453 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs() 467 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs() 497 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs() 498 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs() 499 assert (data->d_size == shdr->sh_size); in adjust_relocs() 557 const size_t nent = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs() 558 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs() 625 const size_t nsym = shdr->sh_size / shdr->sh_entsize; in add_new_section_symbols() 629 shdr->sh_size += added * shdr->sh_entsize; in add_new_section_symbols() [all …]
|
D | elflint.c | 437 if (shdr->sh_size == 0) in check_elf_header() 441 shnum = shdr->sh_size; in check_elf_header() 695 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab() 708 else if (sym->st_name >= strshdr->sh_size) in check_symtab() 802 if (st_value - sh_addr > destshdr->sh_size) in check_symtab() 833 + sym->st_size) > destshdr->sh_size) in check_symtab() 852 if (st_value > destshdr->sh_size) in check_symtab() 858 > destshdr->sh_size) in check_symtab() 900 + destshdr->sh_size)) in check_symtab() 907 + destshdr->sh_size)) in check_symtab() [all …]
|
D | size.c | 440 digits - 2, shdr->sh_size, in show_sysv() 443 total += shdr->sh_size; in show_sysv() 489 shdr->sh_size, elf_strptr (elf, shstrndx, shdr->sh_name)); in show_sysv_one_line() 491 total += shdr->sh_size; in show_sysv_one_line() 535 textsize += shdr->sh_size; in show_bsd() 537 bsssize += shdr->sh_size; in show_bsd() 539 datasize += shdr->sh_size; in show_bsd()
|
D | elfcompress.c | 235 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/swiftshader/third_party/LLVM/test/Scripts/ |
D | elf-dump | 61 self.sh_size = f.readWord() 73 print " ('sh_size', %s)" % common_dump.HexDump(self.sh_size) 89 data = f.read(self.sh_size[0]) 96 entries = section.sh_size[0] // section.sh_entsize[0] 119 entries = section.sh_size[0] // section.sh_entsize[0] 195 shstrtab = StringTable(f.read(sections[e_shstrndx[0]].sh_size[0])) 202 strtab = StringTable(f.read(section.sh_size[0]))
|
/external/swiftshader/third_party/subzero/src/ |
D | IceELFSection.cpp | 30 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()
|
D | IceELFSection.h | 69 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/elfutils/tests/ |
D | elfputzdata.c | 92 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()
|
D | elfstrmerge.c | 287 ? 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/libunwind/src/ |
D | elfxx.c | 145 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/u-boot/cmd/ |
D | elf.c | 124 shdr->sh_addr == 0 || shdr->sh_size == 0) { in load_elf_image_shdr() 133 (long)shdr->sh_size); in load_elf_image_shdr() 138 shdr->sh_size); in load_elf_image_shdr() 142 (const void *)image, shdr->sh_size); in load_elf_image_shdr() 144 flush_cache(shdr->sh_addr, shdr->sh_size); in load_elf_image_shdr()
|
/external/llvm/include/llvm/Object/ |
D | ELF.h | 128 uint64_t Size = Sec->sh_size; in symbol_end() 144 uint64_t Size = sec->sh_size; in rela_end() 161 uint64_t Size = sec->sh_size; in rel_end() 251 uintX_t Size = Sec->sh_size; in getSectionContentsAsArray() 319 return SectionHeaderTable->sh_size; in getNumSections() 439 uint64_t Size = Section->sh_size; in getStringTable() 454 uintX_t Size = Section.sh_size; in getSHNDXTable() 468 if (NumSymbols != (SymTable.sh_size / sizeof(Elf_Sym))) in getSHNDXTable()
|
/external/u-boot/tools/ |
D | zynqmpbif.c | 551 if (!shdr->sh_size || !shdr->sh_addr || in elf2flat64() 558 if ((le64_to_cpu(shdr->sh_addr) + le64_to_cpu(shdr->sh_size)) > in elf2flat64() 561 le64_to_cpu(shdr->sh_size); in elf2flat64() 575 if (!shdr->sh_size || !shdr->sh_addr || in elf2flat64() 580 memcpy(dst, src, le64_to_cpu(shdr->sh_size)); in elf2flat64() 599 if (!shdr->sh_size || !shdr->sh_addr || in elf2flat32() 606 if ((le32_to_cpu(shdr->sh_addr) + le32_to_cpu(shdr->sh_size)) > in elf2flat32() 609 le32_to_cpu(shdr->sh_size); in elf2flat32() 623 if (!shdr->sh_size || !shdr->sh_addr || in elf2flat32() 628 memcpy(dst, src, le32_to_cpu(shdr->sh_size)); in elf2flat32()
|
D | img2srec.c | 287 getPtr = ExtractLong((uint32_t *)§Header[i].sh_size, getPtr); in ConvertELF() 313 && (sectHeader[i].sh_size != 0) in ConvertELF() 315 loadSize = sectHeader[i].sh_size; in ConvertELF() 328 loadSize = sectHeader[i].sh_size; in ConvertELF()
|
/external/google-breakpad/src/common/linux/ |
D | elfutils.cc | 65 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()
|
D | synth_elf_unittest.cc | 247 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()
|
D | dump_symbols.cc | 192 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/toybox/toys/posix/ |
D | file.c | 155 int sh_size = elf_int(shdr+8+12*(bits+1), 4); local 167 while (sh_size >= 3*4) { // Don't try to read a truncated entry. 170 if (sh_offset+sh_size>TT.len) goto bad; 179 if (n_descsz+16>sh_size) goto bad; 185 if (n_descsz+24+64>sh_size) goto bad; 193 sh_size -= notesz;
|
/external/elfutils/libdwfl/ |
D | dwfl_report_elf.c | 122 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()
|
D | relocate.c | 534 || 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/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/ |
D | yaml2elf.cpp | 290 SHeader.sh_size = S->Size; in initSectionHeaders() 342 SHeader.sh_size = arrayDataSize(makeArrayRef(Syms)); in initSymtabSectionHeader() 353 SHeader.sh_size = STB.getSize(); in initStrtabSectionHeader() 387 EndOfSection = SHeader.sh_offset + SHeader.sh_size; in setProgramHeaderLayout() 401 PHeader.p_memsz += SHeader.sh_size; in setProgramHeaderLayout() 470 SHeader.sh_size = Section.Size; in writeSectionContent() 490 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent() 529 SHeader.sh_size = SHeader.sh_entsize * Section.Members.size(); in writeSectionContent() 560 SHeader.sh_size = SHeader.sh_entsize; in writeSectionContent()
|