Home
last modified time | relevance | path

Searched refs:Phdr (Results 1 – 25 of 42) 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.c175 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2()
193 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
198 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
571 assert (sizeof (ElfW2(LIBELFBITS,Phdr)) in __elfw2()
583 ElfW2(LIBELFBITS,Phdr) *tmp_phdr = NULL; in __elfw2()
584 ElfW2(LIBELFBITS,Phdr) *out_phdr = elf->state.ELFW(elf,LIBELFBITS).phdr; in __elfw2()
601 tmp_phdr = (ElfW2(LIBELFBITS,Phdr) *) in __elfw2()
602 malloc (sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum); in __elfw2()
611 sizeof (ElfW2(LIBELFBITS,Phdr)) * phnum, 1); in __elfw2()
618 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
DELFDump.cpp102 for (const typename ELFO::Elf_Phdr &Phdr : *ProgramHeaderOrError) { in printProgramHeaders()
103 switch (Phdr.p_type) { in printProgramHeaders()
146 outs() << "off " << format(Fmt, (uint64_t)Phdr.p_offset) << "vaddr " in printProgramHeaders()
147 << format(Fmt, (uint64_t)Phdr.p_vaddr) << "paddr " in printProgramHeaders()
148 << format(Fmt, (uint64_t)Phdr.p_paddr) in printProgramHeaders()
150 countTrailingZeros<uint64_t>(Phdr.p_align)) in printProgramHeaders()
151 << " filesz " << format(Fmt, (uint64_t)Phdr.p_filesz) in printProgramHeaders()
152 << "memsz " << format(Fmt, (uint64_t)Phdr.p_memsz) << "flags " in printProgramHeaders()
153 << ((Phdr.p_flags & ELF::PF_R) ? "r" : "-") in printProgramHeaders()
154 << ((Phdr.p_flags & ELF::PF_W) ? "w" : "-") in printProgramHeaders()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DELF.cpp488 for (const Elf_Phdr &Phdr : *ProgramHeadersOrError) { in dynamicEntries()
489 if (Phdr.p_type == ELF::PT_DYNAMIC) { in dynamicEntries()
491 reinterpret_cast<const Elf_Dyn *>(base() + Phdr.p_offset), in dynamicEntries()
492 Phdr.p_filesz / sizeof(Elf_Dyn)); in dynamicEntries()
493 DynSecSize = Phdr.p_filesz; in dynamicEntries()
541 for (const Elf_Phdr &Phdr : *ProgramHeadersOrError) in toMappedAddr()
542 if (Phdr.p_type == ELF::PT_LOAD) in toMappedAddr()
543 LoadSegments.push_back(const_cast<Elf_Phdr *>(&Phdr)); in toMappedAddr()
547 [](uint64_t VAddr, const Elf_Phdr_Impl<ELFT> *Phdr) { in toMappedAddr() argument
548 return VAddr < Phdr->p_vaddr; in toMappedAddr()
[all …]
/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.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()
Delf_core_dump.h51 typedef ElfW(Phdr) Phdr; typedef
120 const Phdr* GetProgramHeader(unsigned index) const;
125 const Phdr* GetFirstProgramHeaderOfType(Word type) const;
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/tools/llvm-readobj/
DELFDumper.cpp348 bool checkTLSSections(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
349 bool checkoffsets(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
350 bool checkVMA(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
351 bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
1311 for (const Elf_Phdr &Phdr : Obj->program_headers()) { in ELFDumper() local
1312 if (Phdr.p_type == ELF::PT_DYNAMIC) { in ELFDumper()
1313 DynamicTable = createDRIFrom(&Phdr, sizeof(Elf_Dyn)); in ELFDumper()
1316 if (Phdr.p_type != ELF::PT_LOAD || Phdr.p_filesz == 0) in ELFDumper()
1318 LoadSegments.push_back(&Phdr); in ELFDumper()
1373 const Elf_Phdr &Phdr = **I; in parseDynamicTable() local
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DDwarfCFIEHPrinter.h62 const typename ELFT::Phdr *EHFramePhdr = nullptr; in printUnwindInformation()
68 for (const auto &Phdr : *PHs) { in printUnwindInformation()
69 if (Phdr.p_type == ELF::PT_GNU_EH_FRAME) { in printUnwindInformation()
70 EHFramePhdr = &Phdr; in printUnwindInformation()
71 if (Phdr.p_memsz != Phdr.p_filesz) in printUnwindInformation()
DELFDumper.cpp93 using Elf_Phdr = typename ELFT::Phdr; \
410 bool checkTLSSections(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
411 bool checkoffsets(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
412 bool checkVMA(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
413 bool checkPTDynamic(const Elf_Phdr &Phdr, const Elf_Shdr &Sec);
1381 for (const Elf_Phdr &Phdr : unwrapOrError(Obj->program_headers())) { in ELFDumper() local
1382 if (Phdr.p_type == ELF::PT_DYNAMIC) { in ELFDumper()
1383 DynamicTable = createDRIFrom(&Phdr, sizeof(Elf_Dyn)); in ELFDumper()
1386 if (Phdr.p_type != ELF::PT_LOAD || Phdr.p_filesz == 0) in ELFDumper()
1388 LoadSegments.push_back(&Phdr); in ELFDumper()
[all …]
/external/libchrome/base/debug/
Delf_reader_linux.cc27 using Phdr = Elf32_Phdr; typedef
34 using Phdr = Elf64_Phdr;
77 const Phdr* phdrs = in FindElfSegments()
78 reinterpret_cast<const Phdr*>(elf_base + elf_header->e_phoff); in FindElfSegments()
/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objcopy/
DObject.cpp66 using Elf_Phdr = typename ELFT::Phdr; in writePhdr()
70 Elf_Phdr &Phdr = *reinterpret_cast<Elf_Phdr *>(B); in writePhdr() local
71 Phdr.p_type = Seg.Type; in writePhdr()
72 Phdr.p_flags = Seg.Flags; in writePhdr()
73 Phdr.p_offset = Seg.Offset; in writePhdr()
74 Phdr.p_vaddr = Seg.VAddr; in writePhdr()
75 Phdr.p_paddr = Seg.PAddr; in writePhdr()
76 Phdr.p_filesz = Seg.FileSize; in writePhdr()
77 Phdr.p_memsz = Seg.MemSize; in writePhdr()
78 Phdr.p_align = Seg.Align; in writePhdr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DELF.h61 using Elf_Phdr = typename ELFT::Phdr;
185 Elf_Note_Iterator notes_begin(const Elf_Phdr &Phdr, Error &Err) const { in notes_begin() argument
186 if (Phdr.p_type != ELF::PT_NOTE) { in notes_begin()
190 if (Phdr.p_offset + Phdr.p_filesz > getBufSize()) { in notes_begin()
194 return Elf_Note_Iterator(base() + Phdr.p_offset, Phdr.p_filesz, Err); in notes_begin()
228 iterator_range<Elf_Note_Iterator> notes(const Elf_Phdr &Phdr, in notes() argument
230 return make_range(notes_begin(Phdr, Err), notes_end()); in notes()
/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()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/
Dyaml2elf.cpp112 typedef typename ELFT::Phdr Elf_Phdr;
220 Elf_Phdr Phdr; in initProgramHeaders() local
221 Phdr.p_type = YamlPhdr.Type; in initProgramHeaders()
222 Phdr.p_flags = YamlPhdr.Flags; in initProgramHeaders()
223 Phdr.p_vaddr = YamlPhdr.VAddr; in initProgramHeaders()
224 Phdr.p_paddr = YamlPhdr.PAddr; in initProgramHeaders()
225 PHeaders.push_back(Phdr); in initProgramHeaders()
/external/linux-kselftest/tools/testing/selftests/vDSO/
Dparse_vdso.c112 ELF(Phdr) *pt = (ELF(Phdr)*)(vdso_info.load_addr + hdr->e_phoff); in vdso_init_from_sysinfo_ehdr()
/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()

12