/external/elfutils/libelf/ |
D | elf_strptr.c | 101 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()
|
D | elf32_updatenull.c | 194 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()
|
D | elf_compress_gnu.c | 124 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()
|
D | gelf_update_shdr.c | 66 || unlikely (src->sh_size > 0xffffffffull) in gelf_update_shdr() 81 COPY (sh_size); in gelf_update_shdr()
|
D | elf32_updatefile.c | 67 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()
|
/external/syslinux/com32/tools/ |
D | relocs.c | 332 sec->shdr.sh_size = elf32_to_cpu(shdr.sh_size); in read_shdrs() 351 sec->strtab = malloc(sec->shdr.sh_size); in read_strtabs() 354 sec->shdr.sh_size); in read_strtabs() 360 if (fread(sec->strtab, 1, sec->shdr.sh_size, fp) in read_strtabs() 361 != sec->shdr.sh_size) { in read_strtabs() 376 sec->symtab = malloc(sec->shdr.sh_size); in read_symtabs() 379 sec->shdr.sh_size); in read_symtabs() 385 if (fread(sec->symtab, 1, sec->shdr.sh_size, fp) in read_symtabs() 386 != sec->shdr.sh_size) { in read_symtabs() 390 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) { in read_symtabs() [all …]
|
/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/elfutils/src/ |
D | unstrip.c | 420 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 …]
|
D | elflint.c | 451 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 …]
|
D | size.c | 455 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()
|
D | elfcompress.c | 238 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/ |
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 | 286 ? 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()
|
/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/syslinux/gpxe/src/arch/i386/core/ |
D | freebsd_loader.c | 177 ((shdr[i].sh_offset + shdr[i].sh_size) <= in elf_freebsd_debug_loader() 181 shdr[i].sh_size=0; in elf_freebsd_debug_loader() 186 if ((shdr[i].sh_offset != 0) && (shdr[i].sh_size != 0)) in elf_freebsd_debug_loader() 210 estate.toread = shdr[symtabindex].sh_size; in elf_freebsd_debug_loader() 238 estate.toread = shdr[symstrindex].sh_size; in elf_freebsd_debug_loader()
|
/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/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/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/elfutils/libdwfl/ |
D | relocate.c | 512 || 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()
|
D | dwfl_report_elf.c | 118 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/tools/yaml2obj/ |
D | yaml2elf.cpp | 250 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/swiftshader/third_party/LLVM/test/MC/ELF/ |
D | entsize.ll | 28 ; 64-NEXT: ('sh_size', 0x000000000000000d) 39 ; 64-NEXT: ('sh_size', 0x0000000000000010)
|