Home
last modified time | relevance | path

Searched refs:Phdr (Results 1 – 25 of 32) sorted by relevance

12

/external/llvm/tools/llvm-objdump/
DELFDump.cpp27 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/
Delf32_getphdr.c48 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 …]
Delf32_newphdr.c45 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()
Delf32_updatefile.c181 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 …]
Dabstract.h58 START (32, Phdr, Ext##Phdr) \
67 END (32, Ext##Phdr)
69 START (64, Phdr, Ext##Phdr) \
78 END (64, Ext##Phdr)
Dgelf_xlate.h42 TYPE (Phdr, LIBELFBITS)
/external/google-breakpad/src/common/linux/
Dsynth_elf_unittest.cc200 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 …]
Delf_core_dump.h51 typedef ElfW(Phdr) Phdr; typedef
120 const Phdr* GetProgramHeader(unsigned index) const;
125 const Phdr* GetFirstProgramHeaderOfType(Word type) const;
Delf_core_dump.cc124 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()
Delfutils.cc84 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()
Delfutils.h48 typedef Elf32_Phdr Phdr; typedef
61 typedef Elf64_Phdr Phdr; typedef
Ddump_symbols.cc158 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/
DELF.h107 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/
DGfind_unwind_table.c37 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/
Delf.c73 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/
Delfxx.c258 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()
Delfxx.h62 GET_FIELD(ei, offset, Elf_W(Phdr), phdr, field, false)
/external/llvm/tools/llvm-readobj/
DELFDumper.cpp910 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/
DGex_tables.c458 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/
Dlsan_common_linux.cc59 const ElfW(Phdr) *phdr = &(info->dlpi_phdr[j]); in ProcessGlobalRegionsCallback()
/external/google-breakpad/src/tools/linux/md2core/
Dminidump-2-core.cc63 #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/
Dcoredump-solaris.c393 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_()
Dcoredump-elf.c104 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/
Dcfi.cc25 typedef ElfW(Phdr) Elf_Phdr;
/external/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer.cc648 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr) *>(dumper_->auxv()[AT_PHDR]); in WriteDSODebugStream()
660 ElfW(Phdr) ph; in WriteDSODebugStream()

12