/external/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 33 std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S); 34 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr, 40 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr); 41 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr); 43 dumpContentSection(const Elf_Shdr *Shdr); 44 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr); 45 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr); 46 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr); 190 const Elf_Shdr *Shdr = *ShdrOrErr; in dumpSymbol() local 191 if (!Shdr) in dumpSymbol() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/ |
D | elf2yaml.cpp | 25 typedef typename ELFT::Shdr Elf_Shdr; 48 std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S); 49 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr, 55 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr); 56 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr); 58 dumpContentSection(const Elf_Shdr *Shdr); 59 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr); 60 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr); 61 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr); 264 const Elf_Shdr *Shdr = *ShdrOrErr; in dumpSymbol() local [all …]
|
/external/elfutils/libelf/ |
D | elf32_getshdr.c | 48 static ElfW2(LIBELFBITS,Shdr) * in ElfW2() argument 51 ElfW2(LIBELFBITS,Shdr) *result; in ElfW2() 64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) in ElfW2() 66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); in ElfW2() 70 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = in ElfW2() 71 (ElfW2(LIBELFBITS,Shdr) *) malloc (size); in ElfW2() 91 ElfW2(LIBELFBITS,Shdr) *notcvt; in ElfW2() 105 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) != 0)); in ElfW2() 119 & (__alignof__ (ElfW2(LIBELFBITS,Shdr)) - 1)) in ElfW2() 122 notcvt = (ElfW2(LIBELFBITS,Shdr) *) in ElfW2() [all …]
|
D | elf-knowledge.h | 60 #define SH_INFO_LINK_P(Shdr) \ argument 61 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \ 62 || ((Shdr)->sh_flags & SHF_INFO_LINK) != 0)
|
D | elf32_updatefile.c | 233 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2() 254 void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() 263 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() 307 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2() 437 sizeof (ElfW2(LIBELFBITS,Shdr)), 1); in __elfw2() 441 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2() 649 + sizeof (ElfW2(LIBELFBITS,Shdr))))) in __elfw2() 656 ElfW2(LIBELFBITS,Shdr) *shdr_data; in __elfw2() 657 ElfW2(LIBELFBITS,Shdr) *shdr_data_mem = NULL; in __elfw2() 661 shdr_data_mem = (ElfW2(LIBELFBITS,Shdr) *) in __elfw2() [all …]
|
D | abstract.h | 83 START (32, Shdr, Ext##Shdr) \ 94 END (32, Ext##Shdr) 96 START (64, Shdr, Ext##Shdr) \ 107 END (64, Ext##Shdr)
|
D | elf32_getchdr.c | 45 ElfW2(LIBELFBITS,Shdr) *shdr = elfw2(LIBELFBITS,getshdr) (scn); in ElfW2()
|
D | gelf_xlate.h | 43 TYPE (Shdr, LIBELFBITS)
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/ |
D | Object.cpp | 90 typename ELFT::Shdr &Shdr = *reinterpret_cast<typename ELFT::Shdr *>(B); in writeShdr() local 91 Shdr.sh_name = Sec.NameIndex; in writeShdr() 92 Shdr.sh_type = Sec.Type; in writeShdr() 93 Shdr.sh_flags = Sec.Flags; in writeShdr() 94 Shdr.sh_addr = Sec.Addr; in writeShdr() 95 Shdr.sh_offset = Sec.Offset; in writeShdr() 96 Shdr.sh_size = Sec.Size; in writeShdr() 97 Shdr.sh_link = Sec.Link; in writeShdr() 98 Shdr.sh_info = Sec.Info; in writeShdr() 99 Shdr.sh_addralign = Sec.Align; in writeShdr() [all …]
|
D | Object.h | 193 using Elf_Shdr = typename ELFT::Shdr; 629 using Elf_Shdr = typename ELFT::Shdr; 641 SectionBase &makeSection(const Elf_Shdr &Shdr);
|
/external/google-breakpad/src/common/linux/ |
D | dump_symbols.cc | 178 const typename ElfClass::Shdr* stab_section, in LoadStabs() 179 const typename ElfClass::Shdr* stabstr_section, in LoadStabs() 231 typedef typename ElfClass::Shdr Shdr; in LoadDwarf() typedef 243 const Shdr* sections = in LoadDwarf() 244 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); in LoadDwarf() 246 const Shdr* section_names = sections + elf_header->e_shstrndx; in LoadDwarf() 248 const Shdr* section = §ions[i]; in LoadDwarf() 319 const typename ElfClass::Shdr* section, in LoadDwarfCFI() 321 const typename ElfClass::Shdr* got_section, in LoadDwarfCFI() 322 const typename ElfClass::Shdr* text_section, in LoadDwarfCFI() [all …]
|
D | elfutils.cc | 49 typedef typename ElfClass::Shdr Shdr; in FindElfClassSection() typedef 60 const Shdr* sections = in FindElfClassSection() 61 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); in FindElfClassSection() 62 const Shdr* section_names = sections + elf_header->e_shstrndx; in FindElfClassSection() 67 const Shdr* section = in FindElfClassSection()
|
D | synth_elf_unittest.cc | 201 typedef typename TypeParam::Shdr Shdr; in TYPED_TEST() typedef 206 2 * sizeof(Shdr) + in TYPED_TEST() 236 EXPECT_EQ(sizeof(Shdr), header->e_shentsize); in TYPED_TEST() 240 const Shdr* shdr = in TYPED_TEST() 241 reinterpret_cast<const Shdr*>(contents.data() + header->e_shoff); in TYPED_TEST() 268 typedef typename TypeParam::Shdr Shdr; in TYPED_TEST() typedef 274 sizeof(Phdr) + 4 * sizeof(Shdr) + 4096 + in TYPED_TEST() 311 EXPECT_EQ(sizeof(Shdr), header->e_shentsize); in TYPED_TEST() 315 const Shdr* shdr = in TYPED_TEST() 316 reinterpret_cast<const Shdr*>(contents.data() + header->e_shoff); in TYPED_TEST()
|
D | elfutils.h | 49 typedef Elf32_Shdr Shdr; typedef 62 typedef Elf64_Shdr Shdr; typedef 88 const typename ElfClass::Shdr* 91 const typename ElfClass::Shdr* sections,
|
D | elfutils-inl.h | 46 const typename ElfClass::Shdr* FindElfSectionByName( in FindElfSectionByName() 49 const typename ElfClass::Shdr* sections, in FindElfSectionByName()
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/ |
D | DwarfCFIEHPrinter.h | 38 void printEHFrame(const typename ELFT::Shdr *EHFrameShdr) const; 54 for (const auto &Shdr : *Sections) in findSectionByAddress() 55 if (Shdr.sh_addr == Addr) in findSectionByAddress() 56 return &Shdr; in findSectionByAddress() 85 for (const auto &Shdr : *Sections) { in printUnwindInformation() 86 auto SectionName = Obj->getSectionName(&Shdr); in printUnwindInformation() 91 printEHFrame(&Shdr); in printUnwindInformation() 168 const typename ELFT::Shdr *EHFrameShdr) const { in printEHFrame()
|
D | ELFDumper.cpp | 83 using Elf_Shdr = typename ELFT::Shdr; \ 317 using Elf_Shdr = typename ELFT::Shdr; 810 const typename ELFT::Shdr *Sec = in getSectionNameIndex() 819 for (const auto &Shdr : unwrapOrError(Obj->sections())) in findNotEmptySectionByAddress() local 820 if (Shdr.sh_addr == Addr && Shdr.sh_size > 0) in findNotEmptySectionByAddress() 821 return &Shdr; in findNotEmptySectionByAddress() 828 for (const auto &Shdr : unwrapOrError(Obj.sections())) { in findSectionByName() local 829 if (Name == unwrapOrError(Obj.getSectionName(&Shdr))) in findSectionByName() 830 return &Shdr; in findSectionByName() 2334 const Elf_Shdr *Shdr = findSectionByName(*Obj, ".MIPS.abiflags"); in printMipsABIFlags() local [all …]
|
D | ARMEHABIPrinter.h | 327 typedef typename ET::Shdr Elf_Shdr; 389 const typename ET::Shdr *
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/ |
D | ELF.h | 58 using Elf_Shdr = typename ELFT::Shdr; 204 Elf_Note_Iterator notes_begin(const Elf_Shdr &Shdr, Error &Err) const { in notes_begin() argument 205 if (Shdr.sh_type != ELF::SHT_NOTE) { in notes_begin() 209 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) { in notes_begin() 213 return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, Err); in notes_begin() 240 iterator_range<Elf_Note_Iterator> notes(const Elf_Shdr &Shdr, in notes() argument 242 return make_range(notes_begin(Shdr, Err), notes_end()); in notes() 274 inline Expected<const typename ELFT::Shdr *> 313 Expected<const typename ELFT::Shdr *> 323 Expected<const typename ELFT::Shdr *> [all …]
|
D | ELFTypes.h | 59 using Shdr = Elf_Shdr_Impl<ELFType<E, Is64>>; member 79 using ShdrRange = ArrayRef<Shdr>;
|
/external/libunwind/src/ |
D | elfxx.c | 143 Elf_W(Shdr) shdr; in elf_w() 170 Elf_W(Shdr) shdr; in elf_w() 276 static Elf_W(Shdr)* elf_w (section_table) (struct elf_image* ei) { in Elf_W() argument 286 return (Elf_W(Shdr) *) ((char *) ei->u.mapped.image + soff); in Elf_W() 298 Elf_W(Shdr)* str_shdr = (Elf_W(Shdr) *) ((char *) ei->u.mapped.image + str_soff); in elf_w() 315 Elf_W(Shdr)* shdr = elf_w (section_table) (ei); in elf_w() 386 shdr = (Elf_W(Shdr) *) (((char *) shdr) + ehdr->e_shentsize); in elf_w() 521 Elf_W (Shdr) *shdr; in elf_w() 556 shdr = (Elf_W (Shdr) *) (((char *) shdr) + ehdr->e_shentsize); in elf_w()
|
D | elfxx.h | 65 GET_FIELD(ei, offset, Elf_W(Shdr), shdr, field, false)
|
/external/llvm/tools/llvm-readobj/ |
D | ELFDumper.cpp | 740 for (const auto &Shdr : Obj->sections()) in findNotEmptySectionByAddress() local 741 if (Shdr.sh_addr == Addr && Shdr.sh_size > 0) in findNotEmptySectionByAddress() 742 return &Shdr; in findNotEmptySectionByAddress() 749 for (const auto &Shdr : Obj.sections()) { in findSectionByName() local 750 if (Name == unwrapOrError(Obj.getSectionName(&Shdr))) in findSectionByName() 751 return &Shdr; in findSectionByName() 2247 const Elf_Shdr *Shdr = findSectionByName(*Obj, ".MIPS.abiflags"); in printMipsABIFlags() local 2248 if (!Shdr) { in printMipsABIFlags() 2252 ArrayRef<uint8_t> Sec = unwrapOrError(Obj->getSectionContents(Shdr)); in printMipsABIFlags() 2292 const Elf_Shdr *Shdr = findSectionByName(*Obj, ".reginfo"); in printMipsReginfo() local [all …]
|
/external/libunwind/src/dwarf/ |
D | Gfind_proc_info-lsb.c | 100 Elf_W (Shdr) *sec_hdrs = NULL; in load_debug_frame() 127 sec_hdrs = calloc (ehdr.e_shnum, sizeof (Elf_W (Shdr))); in load_debug_frame() 128 if (sec_hdrs == NULL || fread (sec_hdrs, sizeof (Elf_W (Shdr)), ehdr.e_shnum, f) != ehdr.e_shnum in load_debug_frame()
|
/external/llvm/include/llvm/Object/ |
D | ELFTypes.h | 50 typedef Elf_Shdr_Impl<ELFType<E, Is64>> Shdr; typedef 65 typedef ArrayRef<Shdr> ShdrRange;
|