Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_phdr.h53 const ElfW(Phdr)* loaded_phdr() const { return loaded_phdr_; } in ElfW() argument
81 const ElfW(Phdr)* phdr_table_;
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,
127 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, ElfW(Addr) load_bias,
[all …]
Dlinker_phdr.cpp313 if (phdr_num_ < 1 || phdr_num_ > 65536/sizeof(ElfW(Phdr))) { in ReadProgramHeaders()
319 size_t size = phdr_num_ * sizeof(ElfW(Phdr)); in ReadProgramHeaders()
320 if (!CheckFileRange(header_.e_phoff, size, alignof(ElfW(Phdr)))) { in ReadProgramHeaders()
333 phdr_table_ = static_cast<ElfW(Phdr)*>(phdr_fragment_.data()); in ReadProgramHeaders()
382 const ElfW(Phdr)* phdr = &phdr_table_[i]; in ReadDynamicSection()
476 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size()
484 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
613 const ElfW(Phdr)* phdr = &phdr_table_[i]; in LoadSegments()
708 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot()
710 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_load_prot()
[all …]
Dlinker_main.cpp149 si->phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso->e_phoff); in add_vdso()
178 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr)*>(linker_base + elf_hdr->e_phoff); in init_linker_info_for_gdb()
292 si->phdr = reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR));
471 const ElfW(Phdr)* phdr_table =
472 reinterpret_cast<const ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(elf) + offset);
473 const ElfW(Phdr)* phdr_end = phdr_table + elf->e_phnum;
475 for (const ElfW(Phdr)* phdr = phdr_table; phdr < phdr_end; phdr++) {
518 ElfW(Phdr)* phdr = reinterpret_cast<ElfW(Phdr)*>(linker_addr + elf_hdr->e_phoff);
Dlinker_mips.cpp248 const ElfW(Phdr)& ph = phdr[i]; in mips_check_and_adjust_fp_modes()
Dlinker_soinfo.h95 const ElfW(Phdr)* phdr;
/bionic/tools/relocation_packer/src/
Delf_traits.h25 typedef Elf32_Phdr Phdr; typedef
37 static inline Phdr* getphdr(Elf* elf) { return elf32_getphdr(elf); } in getphdr()
49 typedef Elf64_Phdr Phdr; typedef
61 static inline Phdr* getphdr(Elf* elf) { return elf64_getphdr(elf); } in getphdr()
Delf_file.cc84 template <typename Phdr>
86 const Phdr* program_header) { in VerboseLogProgramHeader()
170 const typename ELF::Phdr* dynamic_program_header = NULL; in Load()
307 static bool ClampLoadSegmentAlignment(typename ELF::Phdr* program_header) { in ClampLoadSegmentAlignment()
319 static bool RestoreLoadSegmentAlignment(typename ELF::Phdr* program_headers, in RestoreLoadSegmentAlignment()
321 typename ELF::Phdr* program_header) { in RestoreLoadSegmentAlignment()
334 typename ELF::Phdr* other_header = &program_headers[i]; in RestoreLoadSegmentAlignment()
346 static bool AdjustLoadSegmentAlignment(typename ELF::Phdr* program_headers, in AdjustLoadSegmentAlignment()
348 typename ELF::Phdr* program_header, in AdjustLoadSegmentAlignment()
367 static void AdjustProgramHeaderFields(typename ELF::Phdr* program_headers, in AdjustProgramHeaderFields()
[all …]
/bionic/libc/bionic/
Dlibc_init_static.cpp57 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in apply_gnu_relro()
60 for (ElfW(Phdr)* phdr = phdr_start; phdr < (phdr_start + phdr_ct); phdr++) { in apply_gnu_relro()
Ddl_iterate_phdr_static.cpp53 …exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_pho… in dl_iterate_phdr()
73 …vdso_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso… in dl_iterate_phdr()
Dvdso.cpp78 ElfW(Phdr)* vdso_phdr = reinterpret_cast<ElfW(Phdr)*>(vdso_ehdr_addr + vdso_ehdr->e_phoff); in __libc_init_vdso()
/bionic/libc/malloc_debug/
DMapData.cpp95 ElfW(Phdr) phdr; in read_loadbase()
96 if (!get_val<ElfW(Word)>(entry, addr + offsetof(ElfW(Phdr), p_type), &phdr.p_type)) { in read_loadbase()
99 if (!get_val<ElfW(Off)>(entry, addr + offsetof(ElfW(Phdr), p_offset), &phdr.p_offset)) { in read_loadbase()
103 if (!get_val<ElfW(Addr)>(entry, addr + offsetof(ElfW(Phdr), p_vaddr), &phdr.p_vaddr)) { in read_loadbase()
/bionic/tests/
Dlink_test.cpp53 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST()
/bionic/libc/include/
Dlink.h48 const ElfW(Phdr)* dlpi_phdr;