/external/libunwind/src/ |
D | elfxx.c | 144 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_offset); 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() 153 Debug (16, "strtab=0x%lx\n", (long) shdr.sh_offset); in elf_w() 154 *offset = shdr.sh_offset; in elf_w() 183 GET_SHDR_FIELD(ei, shdr_offset, &shdr, sh_offset); in elf_w() 187 Debug (16, "symtab=0x%lx[%d]\n", (long) shdr.sh_offset, shdr.sh_type); in elf_w() 190 unw_word_t symtab_end = shdr.sh_offset + shdr.sh_size; in elf_w() 191 for (sym_offset = shdr.sh_offset; in elf_w() 300 if (str_shdr->sh_offset + str_shdr->sh_size > ei->u.mapped.size) { in elf_w() [all …]
|
/external/swiftshader/third_party/LLVM/test/Scripts/ |
D | elf-dump | 60 self.sh_offset = f.readWord() 72 print " ('sh_offset', %s)" % common_dump.HexDump(self.sh_offset) 87 f.seek(self.sh_offset[0]) 99 f.seek(section.sh_offset[0] + index * section.sh_entsize[0]) 122 f.seek(section.sh_offset[0] + index * section.sh_entsize[0]) 194 f.seek(sections[e_shstrndx[0]].sh_offset[0]) 201 f.seek(section.sh_offset[0])
|
/external/vixl/examples/aarch32/ |
D | disasm-a32.cc | 104 reinterpret_cast<const char*>(ehdr) + shdr_[ehdr->e_shstrndx].sh_offset; in SectionLocator() 131 reinterpret_cast<const char*>(ehdr) + strtab->sh_offset; in LocateSymbols() 136 reinterpret_cast<const char*>(ehdr) + symtab->sh_offset); in LocateSymbols() 178 shdr_[sym.st_shndx].sh_offset, in visit() 185 shdr_[sym.st_shndx].sh_offset - shdr_[sym.st_shndx].sh_addr, in visit() 290 func_size = (shndx.sh_offset + shndx.sh_size) - sres->first; in main()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/ |
D | yaml2elf.cpp | 293 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initSectionHeaders() 340 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign), in initSymtabSectionHeader() 352 STB.write(CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign)); in initStrtabSectionHeader() 374 PHeader.p_offset = std::min(PHeader.p_offset, SHeader.sh_offset); in setProgramHeaderLayout() 385 EndOfSection = SHeader.sh_offset; in setProgramHeaderLayout() 387 EndOfSection = SHeader.sh_offset + SHeader.sh_size; in setProgramHeaderLayout() 400 if (SHeader.sh_offset == PHeader.p_offset + PHeader.p_filesz) in setProgramHeaderLayout() 415 if (SHeader.sh_offset == PHeader.p_offset) in setProgramHeaderLayout() 460 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 492 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() [all …]
|
/external/u-boot/tools/ |
D | mips-relocs.c | 204 uintptr_t sh_offset; in main() local 292 shstrtab = elf + shdr_field(ehdr_field(e_shstrndx), sh_offset); in main() 350 sh_offset = shdr_field(i, sh_offset); in main() 373 err = parse_fn(elf + sh_offset + (j * sh_entsize)); in main() 387 buf = buf_start = elf + shdr_field(i_rel_shdr, sh_offset); in main()
|
D | img2srec.c | 286 getPtr = ExtractLong((uint32_t *)§Header[i].sh_offset, getPtr); in ConvertELF() 318 loadDiff = loadAddr - sectHeader[i].sh_offset; in ConvertELF() 321 loadAddr = sectHeader[i].sh_offset + loadDiff; in ConvertELF() 329 fseek(file, sectHeader[i].sh_offset, SEEK_SET); in ConvertELF()
|
/external/elfutils/libdwfl/ |
D | relocate.c | 573 if (unlikely (shdr->sh_offset < ehsize in relocate_section() 574 || tshdr->sh_offset < ehsize)) in relocate_section() 584 if (unlikely (shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section() 585 && shdr->sh_offset < shdrs_end)) in relocate_section() 589 if (unlikely (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section() 590 && tshdr->sh_offset < shdrs_end)) in relocate_section() 603 if (unlikely (phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section() 604 && shdr->sh_offset < phdrs_end)) in relocate_section() 608 if (unlikely (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section() 609 && tshdr->sh_offset < phdrs_end)) in relocate_section()
|
/external/llvm/include/llvm/Object/ |
D | ELF.h | 123 return reinterpret_cast<const Elf_Sym *>(base() + Sec->sh_offset); in symbol_begin() 140 return reinterpret_cast<const Elf_Rela *>(base() + sec->sh_offset); in rela_begin() 157 return reinterpret_cast<const Elf_Rel *>(base() + sec->sh_offset); in rel_begin() 250 uintX_t Offset = Sec->sh_offset; in getSectionContentsAsArray() 417 return reinterpret_cast<const T *>(base() + Section->sh_offset + in getEntry() 438 uint64_t Offset = Section->sh_offset; in getStringTable() 442 StringRef Data((const char *)base() + Section->sh_offset, Size); in getStringTable() 453 reinterpret_cast<const Elf_Word *>(base() + Section.sh_offset); in getSHNDXTable()
|
/external/google-breakpad/src/common/linux/ |
D | dump_symbols.cc | 189 GetOffset<ElfClass, uint8_t>(elf_header, stab_section->sh_offset); in LoadStabs() 191 GetOffset<ElfClass, uint8_t>(elf_header, stabstr_section->sh_offset); in LoadStabs() 250 section_names->sh_offset) + in LoadDwarf() 253 section->sh_offset); in LoadDwarf() 340 GetOffset<ElfClass, char>(elf_header, section->sh_offset); in LoadDwarfCFI() 609 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in LoadSymbols() 666 dynsym_section->sh_offset); in LoadSymbols() 669 dynstr_section->sh_offset); in LoadSymbols() 743 gnu_debuglink_section->sh_offset); in LoadSymbols()
|
D | synth_elf_unittest.cc | 246 EXPECT_EQ(0U, shdr[0].sh_offset); in TYPED_TEST() 257 EXPECT_EQ(sizeof(Ehdr), shdr[1].sh_offset); in TYPED_TEST() 321 EXPECT_EQ(0U, shdr[0].sh_offset); in TYPED_TEST() 332 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr), shdr[1].sh_offset); in TYPED_TEST() 343 EXPECT_EQ(0U, shdr[2].sh_offset); in TYPED_TEST() 354 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096, shdr[3].sh_offset); in TYPED_TEST()
|
D | elfutils.cc | 64 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in FindElfClassSection() 73 *section_start = elf_base + section->sh_offset; in FindElfClassSection()
|
/external/elfutils/libelf/ |
D | gelf_update_shdr.c | 65 || unlikely (src->sh_offset > 0xffffffffull) in gelf_update_shdr() 80 COPY (sh_offset); in gelf_update_shdr()
|
D | elf32_updatefile.c | 58 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections() 59 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections() 62 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset in compare_sections() 63 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) in compare_sections() 278 + scn->shdr.ELFW(e,LIBELFBITS)->sh_offset) in __elfw2() 312 + elf->start_offset + shdr->sh_offset); in __elfw2() 700 off_t scn_start = elf->start_offset + shdr->sh_offset; in __elfw2()
|
D | elf32_getshdr.c | 144 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2() 193 CONVERT (shdr[cnt].sh_offset); in ElfW2()
|
/external/llvm/tools/yaml2obj/ |
D | yaml2elf.cpp | 253 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initSectionHeaders() 296 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign), in initSymtabSectionHeader() 308 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign) in initStrtabSectionHeader() 348 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 375 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 413 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 444 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent()
|
/external/swiftshader/third_party/LLVM/test/MC/ELF/ |
D | entsize.ll | 27 ; 64-NEXT: ('sh_offset', 38 ; 64-NEXT: ('sh_offset',
|
/external/swiftshader/third_party/subzero/src/ |
D | IceELFSection.h | 80 void setFileOffset(Elf64_Off sh_offset) { Header.sh_offset = sh_offset; } in setFileOffset() argument 321 Str.writeAddrOrOffset<IsELF64>(Header.sh_offset); in writeHeader()
|
/external/libunwind/src/ia64/ |
D | Gfind_unwind_table.c | 77 strtab = (char *) edi->ei.image + str_shdr->sh_offset; in find_gp() 83 gp = ((Elf64_Addr *) ((char *) edi->ei.image + shdr->sh_offset))[1]; in find_gp()
|
/external/elfutils/src/ |
D | strip.c | 870 if (lastoffset < shdr.sh_offset + filesz) in handle_debug_relocs() 871 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs() 902 shdr.sh_offset = ((lastoffset + shdr.sh_addralign - 1) in handle_debug_relocs() 912 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs() 913 *last_offset = shdr.sh_offset; in handle_debug_relocs() 1236 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 1725 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 1787 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 2075 if (shdr_info[cnt].shdr.sh_offset == 0) in handle_elf() 2076 shdr_info[cnt].shdr.sh_offset in handle_elf() [all …]
|
D | strings.c | 718 if (shdr->sh_offset > (Elf64_Off) fdlen in read_elf() 719 || fdlen - shdr->sh_offset < shdr->sh_size) in read_elf() 733 result |= read_block (fd, fname, fdlen, shdr->sh_offset, in read_elf() 734 shdr->sh_offset + shdr->sh_size); in read_elf()
|
/external/libunwind/src/dwarf/ |
D | Gfind_proc_info-lsb.c | 136 fseek (f, sec_hdrs[shstrndx].sh_offset, SEEK_SET); in load_debug_frame() 152 fseek (f, sec_hdrs[i].sh_offset, SEEK_SET); in load_debug_frame() 157 *bufsize, (long) sec_hdrs[i].sh_offset); in load_debug_frame() 164 fseek (f, sec_hdrs[i].sh_offset, SEEK_SET); in load_debug_frame() 169 linksize, (long) sec_hdrs[i].sh_offset); in load_debug_frame() 188 fseek (f, sec_hdrs[i].sh_offset, SEEK_SET); in load_debug_frame() 194 xz_size, (long) sec_hdrs[i].sh_offset); in load_debug_frame()
|
/external/elfutils/tests/ |
D | elfstrmerge.c | 286 GElf_Off off = shdr->sh_offset + (shdr->sh_type != SHT_NOBITS in main() 604 newshdr.sh_offset = shdr->sh_offset; in main() 610 newshdr.sh_offset = last_offset; in main() 619 newshdr.sh_offset = 0; in main()
|
D | asm-tst2.c | 221 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main() 223 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
|
D | asm-tst9.c | 255 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main() 257 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
|
/external/swiftshader/third_party/LLVM/lib/Object/ |
D | ELFObjectFile.cpp | 102 Elf_Off sh_offset; // File offset of section data, in bytes member 117 Elf_Off sh_offset; // File offset of section data, in bytes member 394 + SymbolTableSection->sh_offset) in validateSymbol() 396 + SymbolTableSection->sh_offset in validateSymbol() 508 addr += Section->sh_offset; in getSymbolAddress() 695 const char *start = (const char*)base() + sec->sh_offset; in getSectionContents() 1132 if (((const char*)base() + dot_shstrtab_sec->sh_offset) in ELFObjectFile() 1150 const char *dot_strtab = (const char*)base() + sh->sh_offset; in ELFObjectFile() 1161 SymbolTableSectionHeaderIndex->sh_offset); in ELFObjectFile() 1303 + Section->sh_offset in getEntry() [all …]
|