/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/elfutils/tests/ |
D | elfcopy.c | 221 offs[last_off] = shdr.sh_offset; in copy_elf() 228 && last_shdr.sh_offset + last_shdr.sh_size == shdr.sh_offset in copy_elf() 243 offs[last_off] = shdr.sh_offset; in copy_elf() 290 shdr.sh_offset = offs[last_off++]; in copy_elf()
|
D | asm-tst2.c | 222 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main() 224 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
|
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-tst9.c | 256 if ((cnt == 1 && shdr->sh_offset != ((sizeof (Elf32_Ehdr) + 15) & ~15)) in main() 258 && shdr->sh_offset != (((sizeof (Elf32_Ehdr) + 15) & ~15) in main()
|
/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 | 119 return reinterpret_cast<const Elf_Sym *>(base() + Sec->sh_offset); in symbol_begin() 136 return reinterpret_cast<const Elf_Rela *>(base() + sec->sh_offset); in rela_begin() 153 return reinterpret_cast<const Elf_Rel *>(base() + sec->sh_offset); in rel_begin() 246 uintX_t Offset = Sec->sh_offset; in getSectionContentsAsArray() 409 return reinterpret_cast<const T *>(base() + Section->sh_offset + in getEntry() 430 uint64_t Offset = Section->sh_offset; in getStringTable() 434 StringRef Data((const char *)base() + Section->sh_offset, Size); in getStringTable() 445 reinterpret_cast<const Elf_Word *>(base() + Section.sh_offset); in getSHNDXTable()
|
/external/llvm-project/lld/test/ELF/ |
D | nobits-offset.s | 7 ## p_offset will be set to the sh_offset field of the section. Check we align 8 ## sh_offset to sh_addr modulo max-page-size, so that p_vaddr=p_offset (mod
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | ELFEmitter.cpp | 365 To.sh_offset = *From->ShOffset; in overrideFields() 375 if (Header.sh_offset) in initImplicitHeader() 472 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initSectionHeaders() 630 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initSymtabSectionHeader() 656 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in initStrtabSectionHeader() 700 Ret.push_back({H.sh_offset, H.sh_size, H.sh_type, H.sh_addralign}); in getPhdrFragments() 774 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 810 auto &OS = CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 837 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() 864 CBA.getOSAndAlignedOffset(SHeader.sh_offset, SHeader.sh_addralign); in writeSectionContent() [all …]
|
/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_getshdr.c | 144 CONVERT_TO (shdr[cnt].sh_offset, notcvt[cnt].sh_offset); in ElfW2() 193 CONVERT (shdr[cnt].sh_offset); in ElfW2()
|
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() 715 int64_t scn_start = elf->start_offset + shdr->sh_offset; in __elfw2()
|
/external/google-breakpad/src/common/linux/ |
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 | dump_symbols.cc | 216 GetOffset<ElfClass, uint8_t>(elf_header, stab_section->sh_offset); in LoadStabs() 218 GetOffset<ElfClass, uint8_t>(elf_header, stabstr_section->sh_offset); in LoadStabs() 301 section_names->sh_offset) + in LoadDwarf() 304 section->sh_offset); in LoadDwarf() 405 GetOffset<ElfClass, uint8_t>(elf_header, section->sh_offset); in LoadDwarfCFI() 681 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in LoadSymbols() 748 symtab_section->sh_offset); in LoadSymbols() 751 strtab_section->sh_offset); in LoadSymbols() 776 dynsym_section->sh_offset); in LoadSymbols() 779 dynstr_section->sh_offset); in LoadSymbols() [all …]
|
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/llvm-project/lld/test/ELF/linkerscript/ |
D | nobits-offset.s | 11 ## p_offset will be set to the sh_offset field of the section. Check we align 12 ## sh_offset to sh_addr modulo max-page-size, so that p_vaddr=p_offset (mod
|
/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/llvm-project/llvm/test/tools/llvm-objcopy/ELF/ |
D | binary-paddr.test | 1 ## The computed LMA of a section in a PT_LOAD equals sh_offset-p_offset+p_paddr. 75 ## LMA = sh_offset-p_offset+p_paddr = 0x2000-0x2000+0x4000 = 0x4000. 88 ## Check that we use sh_offset instead of sh_addr to decide where to write section contents. 121 ## LMA = sh_offset-p_offset+p_paddr = 0x2000-0x2000+0x3000 = 0x3000.
|
/external/toybox/toys/posix/ |
D | file.c | 137 unsigned long sh_offset; local 142 sh_offset = elf_int(shdr+8+8*(bits+1), 4*(bits+1)); 144 if (sh_offset>TT.len || sh_size>TT.len-sh_offset) goto bad; 150 char *note = map+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/llvm-project/llvm/test/tools/llvm-readobj/ELF/ |
D | packed-relocs.test | 56 …ons from SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 60 …tions in SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 63 …ons from SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 139 …ions from SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 143 …ations in SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 146 …ions from SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
|
/external/llvm-project/llvm/lib/InterfaceStub/ |
D | ELFObjHandler.cpp | 265 DynSym.Content.write(Data + DynSym.Shdr.sh_offset); in write() 266 DynStr.Content.write(Data + DynStr.Shdr.sh_offset); in write() 267 DynTab.Content.write(Data + DynTab.Shdr.sh_offset); in write() 268 ShStrTab.Content.write(Data + ShStrTab.Shdr.sh_offset); in write() 291 StrTab.Shdr.sh_offset = StrTab.Offset; in fillStrTabShdr() 304 SymTab.Shdr.sh_offset = SymTab.Offset; in fillSymTabShdr() 317 DynTab.Shdr.sh_offset = DynTab.Offset; in fillDynTabShdr()
|
/external/elfutils/src/ |
D | strip.c | 891 if (lastoffset < shdr.sh_offset + filesz) in handle_debug_relocs() 892 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs() 923 shdr.sh_offset = ((lastoffset + shdr.sh_addralign - 1) in handle_debug_relocs() 933 lastoffset = shdr.sh_offset + filesz; in handle_debug_relocs() 934 *last_offset = shdr.sh_offset; in handle_debug_relocs() 1282 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 1776 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 1838 shdr_info[cnt].shdr.sh_offset = 0; in handle_elf() 2127 if (shdr_info[cnt].shdr.sh_offset == 0) in handle_elf() 2128 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/llvm-project/lld/test/ELF/invalid/ |
D | verneed-shared.test | 6 ## sh_offset(SHT_GNU_verneed) is out of bounds. 9 # SHOFFSET: error: {{.*}}.so: section [index 1] has a sh_offset (0xffffffff) + sh_size (0x0) that i…
|