/external/llvm/tools/llvm-objdump/ |
D | ELFDump.cpp | 27 for (const typename ELFO::Elf_Phdr &Phdr : o->program_headers()) { in printProgramHeaders() local 28 switch (Phdr.p_type) { in printProgramHeaders() 56 outs() << "off " << format(Fmt, (uint64_t)Phdr.p_offset) << "vaddr " in printProgramHeaders() 57 << format(Fmt, (uint64_t)Phdr.p_vaddr) << "paddr " in printProgramHeaders() 58 << format(Fmt, (uint64_t)Phdr.p_paddr) in printProgramHeaders() 60 countTrailingZeros<uint64_t>(Phdr.p_align)) in printProgramHeaders() 61 << " filesz " << format(Fmt, (uint64_t)Phdr.p_filesz) in printProgramHeaders() 62 << "memsz " << format(Fmt, (uint64_t)Phdr.p_memsz) << "flags " in printProgramHeaders() 63 << ((Phdr.p_flags & ELF::PF_R) ? "r" : "-") in printProgramHeaders() 64 << ((Phdr.p_flags & ELF::PF_W) ? "w" : "-") in printProgramHeaders() [all …]
|
/external/elfutils/libelf/ |
D | elf32_getphdr.c | 48 ElfW2(LIBELFBITS,Phdr) * in ElfW2() argument 51 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() 85 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr)); in ElfW2() 87 if (phnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr)) in ElfW2() 113 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0)) in ElfW2() 118 ElfW2(LIBELFBITS,Phdr) *notcvt; in ElfW2() 119 ElfW2(LIBELFBITS,Phdr) *phdr; in ElfW2() 124 (ElfW2(LIBELFBITS,Phdr) *) malloc (size); in ElfW2() 145 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) in ElfW2() 151 notcvt = (ElfW2(LIBELFBITS,Phdr) *) malloc (size); in ElfW2() [all …]
|
D | elf32_newphdr.c | 45 ElfW2(LIBELFBITS,Phdr) * in ElfW2() argument 48 ElfW2(LIBELFBITS,Phdr) *result; in ElfW2() 102 sizeof (ElfW2(LIBELFBITS,Phdr)); in ElfW2() 115 if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr)))) in ElfW2() 134 result = (ElfW2(LIBELFBITS,Phdr) *) in ElfW2() 136 count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2() 159 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2() 182 memset (result, '\0', count * sizeof (ElfW2(LIBELFBITS,Phdr))); in ElfW2()
|
D | elf32_updatefile.c | 181 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2() 204 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2() 209 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2() 567 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2() 579 ElfW2(LIBELFBITS,Phdr) *tmp_phdr = NULL; in __elfw2() 580 ElfW2(LIBELFBITS,Phdr) *out_phdr = elf->state.ELFW(elf,LIBELFBITS).phdr; in __elfw2() 602 tmp_phdr = (ElfW2(LIBELFBITS,Phdr) *) in __elfw2() 603 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2() 612 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2() 619 size_t phdr_size = sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum; in __elfw2() [all …]
|
D | abstract.h | 58 START (32, Phdr, Ext##Phdr) \ 67 END (32, Ext##Phdr) 69 START (64, Phdr, Ext##Phdr) \ 78 END (64, Ext##Phdr)
|
D | gelf_xlate.h | 42 TYPE (Phdr, LIBELFBITS)
|
/external/google-breakpad/src/common/linux/ |
D | synth_elf_unittest.cc | 200 typedef typename TypeParam::Phdr Phdr; in TYPED_TEST() typedef 234 EXPECT_EQ(sizeof(Phdr), header->e_phentsize); in TYPED_TEST() 267 typedef typename TypeParam::Phdr Phdr; in TYPED_TEST() typedef 274 sizeof(Phdr) + 4 * sizeof(Shdr) + 4096 + in TYPED_TEST() 305 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096 + kStringTableSize + in TYPED_TEST() 309 EXPECT_EQ(sizeof(Phdr), header->e_phentsize); in TYPED_TEST() 332 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr), shdr[1].sh_offset); in TYPED_TEST() 354 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096, shdr[3].sh_offset); in TYPED_TEST() 361 const Phdr* phdr = in TYPED_TEST() 362 reinterpret_cast<const Phdr*>(contents.data() + header->e_phoff); in TYPED_TEST() [all …]
|
D | elf_core_dump.h | 51 typedef ElfW(Phdr) Phdr; typedef 120 const Phdr* GetProgramHeader(unsigned index) const; 125 const Phdr* GetFirstProgramHeaderOfType(Word type) const;
|
D | elf_core_dump.cc | 124 const ElfCoreDump::Phdr* ElfCoreDump::GetProgramHeader(unsigned index) const { in GetProgramHeader() 127 return reinterpret_cast<const Phdr*>(content_.GetArrayElement( in GetProgramHeader() 133 const ElfCoreDump::Phdr* ElfCoreDump::GetFirstProgramHeaderOfType( in GetFirstProgramHeaderOfType() 136 const Phdr* program = GetProgramHeader(i); in GetFirstProgramHeaderOfType() 151 const Phdr* program = GetProgramHeader(i); in CopyData() 171 const Phdr* program_header = GetFirstProgramHeaderOfType(PT_NOTE); in GetFirstNote()
|
D | elfutils.cc | 84 typedef typename ElfClass::Phdr Phdr; in FindElfClassSegment() typedef 95 const Phdr* phdrs = in FindElfClassSegment() 96 GetOffset<ElfClass, Phdr>(elf_header, elf_header->e_phoff); in FindElfClassSegment()
|
D | elfutils.h | 48 typedef Elf32_Phdr Phdr; typedef 61 typedef Elf64_Phdr Phdr; typedef
|
D | dump_symbols.cc | 158 const typename ElfClass::Phdr* program_headers, in GetLoadingAddress() 160 typedef typename ElfClass::Phdr Phdr; in GetLoadingAddress() typedef 168 const Phdr& header = program_headers[i]; in GetLoadingAddress() 593 typedef typename ElfClass::Phdr Phdr; in LoadSymbols() typedef 598 GetOffset<ElfClass, Phdr>(elf_header, elf_header->e_phoff), in LoadSymbols()
|
/external/llvm/include/llvm/Object/ |
D | ELF.h | 107 ErrorOr<const Elf_Dyn *> dynamic_table_begin(const Elf_Phdr *Phdr) const; 108 ErrorOr<const Elf_Dyn *> dynamic_table_end(const Elf_Phdr *Phdr) const; 109 ErrorOr<Elf_Dyn_Range> dynamic_table(const Elf_Phdr *Phdr) const { in dynamic_table() argument 110 ErrorOr<const Elf_Dyn *> Begin = dynamic_table_begin(Phdr); in dynamic_table() 113 ErrorOr<const Elf_Dyn *> End = dynamic_table_end(Phdr); in dynamic_table() 389 static bool compareAddr(uint64_t VAddr, const Elf_Phdr_Impl<ELFT> *Phdr) { in compareAddr() argument 390 return VAddr < Phdr->p_vaddr; in compareAddr() 408 ELFFile<ELFT>::dynamic_table_begin(const Elf_Phdr *Phdr) const { in dynamic_table_begin() argument 409 if (!Phdr) in dynamic_table_begin() 411 assert(Phdr->p_type == ELF::PT_DYNAMIC && "Got the wrong program header"); in dynamic_table_begin() [all …]
|
/external/libunwind/src/dwarf/ |
D | Gfind_unwind_table.c | 37 Elf_W(Phdr) phdr; in get_dyn_gp() 62 Elf_W(Phdr) phdr; in get_eh_frame_info() 145 Elf_W(Phdr) phdr; in dwarf_find_unwind_table_memory() 220 arm_exidx_phdr_offset + sizeof(Elf_W(Phdr)) < ei->u.memory.end - ei->u.memory.start) { in dwarf_find_unwind_table_memory() 221 Elf_W(Phdr) phdr; in dwarf_find_unwind_table_memory() 243 Elf_W(Phdr) *phdr, *ptxt = NULL, *peh_hdr = NULL, *pdyn = NULL; in dwarf_find_unwind_table() 256 const Elf_W(Phdr) *parm_exidx = NULL; in dwarf_find_unwind_table() 274 phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in dwarf_find_unwind_table()
|
/external/valgrind/coregrind/m_ume/ |
D | elf.c | 73 ESZ(Phdr) *p; 136 if (e->e.e_phentsize != sizeof(ESZ(Phdr))) { in readelf() 141 phsz = sizeof(ESZ(Phdr)) * e->e.e_phnum; in readelf() 168 ESZ(Phdr) *ph = &e->p[i]; in mapelf() 184 ESZ(Phdr) *ph = &e->p[i]; in mapelf() 366 ESZ(Phdr) *ph = &e->p[i]; in VG_() 420 ESZ(Phdr) *iph = &interp->p[j]; in VG_()
|
/external/libunwind/src/ |
D | elfxx.c | 258 Elf_W(Phdr) phdr; in elf_w() 268 offset += sizeof(Elf_W(Phdr)); in elf_w() 394 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in elf_w() 408 Elf_W(Phdr) *phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff); in elf_w() 619 Elf_W(Phdr)* phdr = (Elf_W(Phdr)*) ((char*) ei->u.mapped.image + ehdr->e_phoff); in elf_w() 635 Elf_W(Phdr) phdr; in elf_w()
|
D | elfxx.h | 62 GET_FIELD(ei, offset, Elf_W(Phdr), phdr, field, false)
|
/external/llvm/tools/llvm-readobj/ |
D | ELFDumper.cpp | 910 for (const Elf_Phdr &Phdr : Obj->program_headers()) { in ELFDumper() local 911 if (Phdr.p_type == ELF::PT_DYNAMIC) { in ELFDumper() 912 DynamicProgHeader = &Phdr; in ELFDumper() 915 if (Phdr.p_type != ELF::PT_LOAD || Phdr.p_filesz == 0) in ELFDumper() 917 LoadSegments.push_back(&Phdr); in ELFDumper() 926 const Elf_Phdr &Phdr = **I; in ELFDumper() local 927 uint64_t Delta = VAddr - Phdr.p_vaddr; in ELFDumper() 928 if (Delta >= Phdr.p_filesz) in ELFDumper() 930 return Obj->base() + Phdr.p_offset + Delta; in ELFDumper() 1607 for (const Elf_Phdr &Phdr : Obj->program_headers()) { in printProgramHeaders() local [all …]
|
/external/libunwind/src/arm/ |
D | Gex_tables.c | 458 const Elf_W(Phdr) *p_text = NULL; in arm_phdr_cb() 459 const Elf_W(Phdr) *p_arm_exidx = NULL; in arm_phdr_cb() 460 const Elf_W(Phdr) *phdr = info->dlpi_phdr; in arm_phdr_cb()
|
/external/compiler-rt/lib/lsan/ |
D | lsan_common_linux.cc | 59 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]); in ProcessGlobalRegionsCallback()
|
/external/google-breakpad/src/tools/linux/md2core/ |
D | minidump-2-core.cc | 63 #define Phdr ElfW(Phdr) macro 1106 ehdr.e_phentsize= sizeof(Phdr); in main() 1113 size_t offset = sizeof(Ehdr) + ehdr.e_phnum * sizeof(Phdr); in main() 1127 Phdr phdr; in main() 1128 memset(&phdr, 0, sizeof(Phdr)); in main()
|
/external/valgrind/coregrind/m_coredump/ |
D | coredump-solaris.c | 393 ehdr->e_phentsize = sizeof(VKI_ESZ(Phdr)); in fill_ehdr() 415 static void fill_phdr(VKI_ESZ(Phdr) *phdr, const NSegment *seg, UInt off, in fill_phdr() 826 static void fill_notes_phdr(VKI_ESZ(Phdr) *phdr, UInt offset, in fill_notes_phdr() 1036 VKI_ESZ(Phdr) *phdrs = VG_(malloc)("coredump-elf.mc.2", phdrs_size); in VG_()
|
D | coredump-elf.c | 104 ehdr->e_phentsize = sizeof(ESZ(Phdr)); in fill_ehdr() 112 static void fill_phdr(ESZ(Phdr) *phdr, const NSegment *seg, UInt off, Bool write) in fill_phdr() 576 ESZ(Phdr) *phdrs; in make_elf_coredump()
|
/external/compiler-rt/lib/cfi/ |
D | cfi.cc | 25 typedef ElfW(Phdr) Elf_Phdr;
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | minidump_writer.cc | 648 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr) *>(dumper_->auxv()[AT_PHDR]); in WriteDSODebugStream() 660 ElfW(Phdr) ph; in WriteDSODebugStream()
|