Home
last modified time | relevance | path

Searched refs:Shdr (Results 1 – 22 of 22) sorted by relevance

/external/llvm/tools/obj2yaml/
Delf2yaml.cpp33 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/elfutils/libelf/
Delf32_getshdr.c48 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 …]
Delf-knowledge.h60 #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)
Delf32_updatefile.c248 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) in __elfw2()
269 void *p = malloc (sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
277 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
320 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
428 sizeof (ElfW2(LIBELFBITS,Shdr)), 1); in __elfw2()
432 sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
650 + sizeof (ElfW2(LIBELFBITS,Shdr))))) in __elfw2()
661 ElfW2(LIBELFBITS,Shdr) *shdr_data; in __elfw2()
662 ElfW2(LIBELFBITS,Shdr) *shdr_data_mem = NULL; in __elfw2()
666 shdr_data_mem = (ElfW2(LIBELFBITS,Shdr) *) in __elfw2()
[all …]
Dabstract.h83 START (32, Shdr, Ext##Shdr) \
94 END (32, Ext##Shdr)
96 START (64, Shdr, Ext##Shdr) \
107 END (64, Ext##Shdr)
Delf32_getchdr.c45 ElfW2(LIBELFBITS,Shdr) *shdr = elfw2(LIBELFBITS,getshdr) (scn); in ElfW2()
Dgelf_xlate.h43 TYPE (Shdr, LIBELFBITS)
Delf32_updatenull.c211 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); in __elfw2()
Delf_getdata.c90 [ELF_T_SHDR] = __alignof__ (ElfW2(Bits,Shdr)), \
DChangeLog186 * elf_begin.c (get_shnum): Check alignment of Shdr, not Ehdr before
/external/google-breakpad/src/common/linux/
Ddump_symbols.cc178 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 = &sections[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 …]
Delfutils.cc49 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()
Dsynth_elf_unittest.cc201 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()
Delfutils.h49 typedef Elf32_Shdr Shdr; typedef
62 typedef Elf64_Shdr Shdr; typedef
88 const typename ElfClass::Shdr*
91 const typename ElfClass::Shdr* sections,
Delfutils-inl.h46 const typename ElfClass::Shdr* FindElfSectionByName( in FindElfSectionByName()
49 const typename ElfClass::Shdr* sections, in FindElfSectionByName()
/external/libunwind/src/
Delfxx.c143 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()
Delfxx.h65 GET_FIELD(ei, offset, Elf_W(Shdr), shdr, field, false)
/external/llvm/tools/llvm-readobj/
DELFDumper.cpp495 for (const auto &Shdr : Obj->sections()) in findSectionByAddress() local
496 if (Shdr.sh_addr == Addr) in findSectionByAddress()
497 return &Shdr; in findSectionByAddress()
504 for (const auto &Shdr : Obj.sections()) { in findSectionByName() local
505 if (Name == errorOrDefault(Obj.getSectionName(&Shdr))) in findSectionByName()
506 return &Shdr; in findSectionByName()
2083 const Elf_Shdr *Shdr = findSectionByName(*Obj, ".MIPS.abiflags"); in printMipsABIFlags() local
2084 if (!Shdr) { in printMipsABIFlags()
2088 ErrorOr<ArrayRef<uint8_t>> Sec = Obj->getSectionContents(Shdr); in printMipsABIFlags()
2121 const Elf_Shdr *Shdr = findSectionByName(*Obj, ".reginfo"); in printMipsReginfo() local
[all …]
/external/libunwind/src/dwarf/
DGfind_proc_info-lsb.c100 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/valgrind/coregrind/m_coredump/
Dcoredump-solaris.c404 ehdr->e_shentsize = sizeof(VKI_ESZ(Shdr)); in fill_ehdr()
443 static void fill_zero_shdr(VKI_ESZ(Shdr) *shdr, UInt num_phdrs) in fill_zero_shdr()
932 VKI_ESZ(Shdr) shdr; in VG_()
/external/google-breakpad/src/tools/linux/md2core/
Dminidump-2-core.cc64 #define Shdr ElfW(Shdr) macro
1109 ehdr.e_shentsize= sizeof(Shdr); in main()
/external/elfutils/
DTODO27 When reading (ELF_C_READ*) then there is no need to malloc Shdr