HomeSort by relevance Sort by last modified time
    Searched refs:Phdr (Results 1 - 25 of 86) sorted by null

1 2 3 4

  /external/llvm/tools/llvm-objdump/
ELFDump.cpp 27 for (const typename ELFO::Elf_Phdr &Phdr : o->program_headers()) {
28 switch (Phdr.p_type) {
45 outs() << " PHDR ";
56 outs() << "off " << format(Fmt, (uint64_t)Phdr.p_offset) << "vaddr "
57 << format(Fmt, (uint64_t)Phdr.p_vaddr) << "paddr "
58 << format(Fmt, (uint64_t)Phdr.p_paddr)
60 countTrailingZeros<uint64_t>(Phdr.p_align))
61 << " filesz " << format(Fmt, (uint64_t)Phdr.p_filesz)
62 << "memsz " << format(Fmt, (uint64_t)Phdr.p_memsz) << "flags "
63 << ((Phdr.p_flags & ELF::PF_R) ? "r" : "-"
    [all...]
  /bionic/linker/
linker_phdr.h 53 const ElfW(Phdr)* loaded_phdr() const { return loaded_phdr_; }
81 const ElfW(Phdr)* phdr_table_;
101 // Loaded phdr.
102 const ElfW(Phdr)* loaded_phdr_;
108 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count,
111 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table,
114 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
117 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
120 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
123 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count
    [all...]
linker_phdr.cpp 76 We will ignore the p_paddr and p_align fields of ElfW(Phdr) for now.
299 // check DYNSYM and DYNAMIC sections and phdr/shdr - none of them can be
317 if (phdr_num_ < 1 || phdr_num_ > 65536/sizeof(ElfW(Phdr))) {
323 size_t size = phdr_num_ * sizeof(ElfW(Phdr));
324 if (!CheckFileRange(header_.e_phoff, size, alignof(ElfW(Phdr)))) {
325 DL_ERR_AND_LOG("\"%s\" has invalid phdr offset/size: %zu/%zu",
333 DL_ERR("\"%s\" phdr mmap failed: %s", name_.c_str(), strerror(errno));
337 phdr_table_ = static_cast<ElfW(Phdr)*>(phdr_fragment_.data());
382 // Make sure dynamic_shdr offset and size matches PT_DYNAMIC phdr
386 const ElfW(Phdr)* phdr = &phdr_table_[i]
    [all...]
linker_main.cpp 154 si->phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso->e_phoff);
157 si->size = phdr_table_get_load_size(si->phdr, si->phnum);
189 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr)*>(linker_base + elf_hdr->e_phoff);
190 phdr_table_get_dynamic_section(phdr, elf_hdr->e_phnum, linker_base,
316 si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR));
320 * the first entry is the PHDR because this will not be tru
    [all...]
  /external/google-breakpad/src/common/linux/
elf_core_dump.h 51 typedef ElfW(Phdr) Phdr;
120 const Phdr* GetProgramHeader(unsigned index) const;
125 const Phdr* GetFirstProgramHeaderOfType(Word type) const;
elf_core_dump.cc 124 const ElfCoreDump::Phdr* ElfCoreDump::GetProgramHeader(unsigned index) const {
127 return reinterpret_cast<const Phdr*>(content_.GetArrayElement(
133 const ElfCoreDump::Phdr* ElfCoreDump::GetFirstProgramHeaderOfType(
136 const Phdr* program = GetProgramHeader(i);
151 const Phdr* program = GetProgramHeader(i);
171 const Phdr* program_header = GetFirstProgramHeaderOfType(PT_NOTE);
elfutils.h 48 typedef Elf32_Phdr Phdr;
61 typedef Elf64_Phdr Phdr;
elfutils.cc 84 typedef typename ElfClass::Phdr Phdr;
95 const Phdr* phdrs =
96 GetOffset<ElfClass, Phdr>(elf_header, elf_header->e_phoff);
synth_elf_unittest.cc 200 typedef typename TypeParam::Phdr Phdr;
234 EXPECT_EQ(sizeof(Phdr), header->e_phentsize);
267 typedef typename TypeParam::Phdr Phdr;
274 sizeof(Phdr) + 4 * sizeof(Shdr) + 4096 +
305 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096 + kStringTableSize +
309 EXPECT_EQ(sizeof(Phdr), header->e_phentsize);
332 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr), shdr[1].sh_offset);
354 EXPECT_EQ(sizeof(Ehdr) + sizeof(Phdr) + 4096, shdr[3].sh_offset)
361 const Phdr* phdr = local
    [all...]
  /external/elfutils/libelf/
elf32_getphdr.c 48 ElfW2(LIBELFBITS,Phdr) *
51 ElfW2(LIBELFBITS,Phdr) *result;
56 result = elf->state.ELFW(elf,LIBELFBITS).phdr;
85 size_t size = phnum * sizeof (ElfW2(LIBELFBITS,Phdr));
87 if (phnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr))
113 & (__alignof__ (ElfW2(LIBELFBITS,Phdr)) - 1)) == 0))
115 elf->state.ELFW(elf,LIBELFBITS).phdr = file_phdr;
118 ElfW2(LIBELFBITS,Phdr) *notcvt;
119 ElfW2(LIBELFBITS,Phdr) *phdr;
    [all...]
elf32_newphdr.c 45 ElfW2(LIBELFBITS,Phdr) *
48 ElfW2(LIBELFBITS,Phdr) *result;
87 if (elf->state.ELFW(elf,LIBELFBITS).phdr != NULL)
90 free (elf->state.ELFW(elf,LIBELFBITS).phdr);
93 elf->state.ELFW(elf,LIBELFBITS).phdr = NULL;
102 sizeof (ElfW2(LIBELFBITS,Phdr));
113 || elf->state.ELFW(elf,LIBELFBITS).phdr == NULL)
115 if (unlikely (count > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Phdr))))
126 the extended phdr count. */
134 result = (ElfW2(LIBELFBITS,Phdr) *)
    [all...]
gelf_xlate.h 42 TYPE (Phdr, LIBELFBITS)
  /bionic/tools/relocation_packer/src/
elf_traits.h 25 typedef Elf32_Phdr Phdr;
37 static inline Phdr* getphdr(Elf* elf) { return elf32_getphdr(elf); }
49 typedef Elf64_Phdr Phdr;
61 static inline Phdr* getphdr(Elf* elf) { return elf64_getphdr(elf); }
elf_file.cc 84 template <typename Phdr>
86 const Phdr* program_header) {
93 case PT_PHDR: type = "PHDR"; break;
99 VLOG(1) << "phdr[" << program_header_index << "] : " << type;
170 const typename ELF::Phdr* dynamic_program_header = NULL;
307 static bool ClampLoadSegmentAlignment(typename ELF::Phdr* program_header) {
319 static bool RestoreLoadSegmentAlignment(typename ELF::Phdr* program_headers,
321 typename ELF::Phdr* program_header) {
334 typename ELF::Phdr* other_header = &program_headers[i];
346 static bool AdjustLoadSegmentAlignment(typename ELF::Phdr* program_headers
    [all...]
  /bionic/libc/bionic/
libc_init_static.cpp 58 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR));
61 for (ElfW(Phdr)* phdr = phdr_start; phdr < (phdr_start + phdr_ct); phdr++) {
62 if (phdr->p_type != PT_GNU_RELRO) {
66 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr);
67 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz)
    [all...]
dl_iterate_phdr_static.cpp 53 exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_phoff);
72 vdso_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso->e_phoff);
vdso.cpp 105 ElfW(Phdr)* vdso_phdr = reinterpret_cast<ElfW(Phdr)*>(vdso_ehdr_addr + vdso_ehdr->e_phoff);
  /bionic/libc/include/
link.h 48 const ElfW(Phdr)* dlpi_phdr;
  /bionic/libc/malloc_debug/
MapData.cpp 95 ElfW(Phdr) phdr;
96 if (!get_val<ElfW(Word)>(entry, addr + offsetof(ElfW(Phdr), p_type), &phdr.p_type)) {
99 if (!get_val<ElfW(Off)>(entry, addr + offsetof(ElfW(Phdr), p_offset), &phdr.p_offset)) {
102 if (phdr.p_type == PT_LOAD && phdr.p_offset == entry->offset) {
103 if (!get_val<ElfW(Addr)>(entry, addr + offsetof(ElfW(Phdr), p_vaddr), &phdr.p_vaddr))
    [all...]
  /bionic/tests/
link_test.cpp 53 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]);
54 if (phdr->p_type == PT_LOAD) {
56 phdr->p_vaddr);
  /external/libunwind/src/dwarf/
Gfind_unwind_table.c 37 Elf_W(Phdr) phdr;
38 GET_PHDR_FIELD(ei, dyn_phdr_offset, &phdr, p_offset);
40 Elf_W(Off) dyn_offset = phdr.p_offset;
62 Elf_W(Phdr) phdr;
63 GET_PHDR_FIELD(ei, phdr_offset, &phdr, p_offset);
64 unw_word_t hdr_offset = phdr.p_offset;
67 if (sizeof(hdr) != elf_w (memory_read) (ei, ei->u.memory.start + phdr.p_offset,
114 GET_PHDR_FIELD(ei, phdr_offset, &phdr, p_vaddr)
    [all...]
  /external/llvm/tools/llvm-readobj/
ELFDumper.cpp 348 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);
    [all...]
  /external/valgrind/coregrind/m_ume/
elf.c 78 ESZ(Phdr) *p;
87 @phdr: The program header to check
89 @is_interpreter: True if the phdr is from the interpreter of the ELF
94 Inspects the program header phdr to validate its correctness and/or
122 ESZ(Phdr) *phdr,
141 if (phdr->p_type != VKI_PT_MIPS_ABIFLAGS)
144 if (phdr->p_filesz < sizeof(abiflags))
147 sres = VG_(pread)(fd, &abiflags, sizeof(abiflags), phdr->p_offset);
294 ESZ(Phdr) *phdr
    [all...]
  /system/core/libunwindstack/tests/
ElfInterfaceTest.cpp 51 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType>
54 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType>
57 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType>
60 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType>
63 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType>
73 template <typename Ehdr, typename Phdr, typename Shdr, typename Dyn>
131 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType>
139 ehdr.e_phentsize = sizeof(Phdr);
142 Phdr phdr; local
182 Phdr phdr; local
251 Phdr phdr; local
322 Phdr phdr; local
381 Phdr phdr; local
454 Elf32_Phdr phdr; local
504 Phdr phdr; local
966 Elf32_Phdr phdr; local
994 Elf32_Phdr phdr; local
    [all...]
  /frameworks/compile/mclinker/include/mcld/ADT/
SizeTraits.h 56 typedef llvm::ELF::Elf32_Phdr Phdr;
76 typedef llvm::ELF::Elf64_Phdr Phdr;

Completed in 394 milliseconds

1 2 3 4