Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_phdr.h55 const ElfW(Phdr)* loaded_phdr() const { return loaded_phdr_; } in ElfW() argument
84 const ElfW(Phdr)* phdr_table_;
109 const ElfW(Phdr)* loaded_phdr_;
115 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count,
118 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table,
121 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
124 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
127 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
130 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
134 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, ElfW(Addr) load_bias,
[all …]
Dlinker_phdr.cpp315 if (phdr_num_ < 1 || phdr_num_ > 65536/sizeof(ElfW(Phdr))) { in ReadProgramHeaders()
321 size_t size = phdr_num_ * sizeof(ElfW(Phdr)); in ReadProgramHeaders()
322 if (!CheckFileRange(header_.e_phoff, size, alignof(ElfW(Phdr)))) { in ReadProgramHeaders()
335 phdr_table_ = static_cast<ElfW(Phdr)*>(phdr_fragment_.data()); in ReadProgramHeaders()
384 const ElfW(Phdr)* phdr = &phdr_table_[i]; in ReadDynamicSection()
482 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size()
490 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
640 const ElfW(Phdr)* phdr = &phdr_table_[i]; in LoadSegments()
738 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot()
740 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_load_prot()
[all …]
Dlinker_main.cpp64 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count,
165 si->phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso->e_phoff); in add_vdso()
196 const ElfW(Phdr)* phdr;
232 result.phdr = reinterpret_cast<const ElfW(Phdr)*>(getauxval(AT_PHDR)); in get_executable_info()
516 const ElfW(Phdr)* phdr_table = in get_elf_exec_load_bias()
517 reinterpret_cast<const ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(elf) + offset); in get_elf_exec_load_bias()
518 const ElfW(Phdr)* phdr_end = phdr_table + elf->e_phnum; in get_elf_exec_load_bias()
520 for (const ElfW(Phdr)* phdr = phdr_table; phdr < phdr_end; phdr++) { in get_elf_exec_load_bias()
533 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, in get_elf_base_from_phdr()
648 reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), getauxval(AT_PHNUM), in __linker_init()
[all …]
Dlinker_wrapper.cpp42 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, in get_elf_base_from_phdr()
63 reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)), args.getauxval(AT_PHNUM), in __linker_init()
Dlinker_soinfo.h163 const ElfW(Phdr)* phdr;
Dlinker.cpp828 const ElfW(Phdr)* phdr = &si->phdr[i]; in find_containing_library()
/bionic/libc/bionic/
Dlibc_init_static.cpp115 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in apply_gnu_relro()
118 for (ElfW(Phdr)* phdr = phdr_start; phdr < (phdr_start + phdr_ct); phdr++) { in apply_gnu_relro()
136 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in layout_static_tls()
Dlibc_init_dynamic.cpp68 const ElfW(Phdr)* phdr,
71 const ElfW(Phdr)* phdr,
Ddl_iterate_phdr_static.cpp57 …exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_pho… in dl_iterate_phdr()
91 …vdso_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso… in dl_iterate_phdr()
Dvdso.cpp105 ElfW(Phdr)* vdso_phdr = reinterpret_cast<ElfW(Phdr)*>(vdso_ehdr_addr + vdso_ehdr->e_phoff); in __libc_init_vdso()
Dbionic_elf_tls.cpp56 bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count, in __bionic_get_tls_segment()
59 const ElfW(Phdr)& phdr = phdr_table[i]; in __bionic_get_tls_segment()
/bionic/libc/malloc_debug/
DMapData.cpp115 ElfW(Phdr) phdr; in read_loadbias()
116 if (!get_val<ElfW(Word)>(entry, addr + offsetof(ElfW(Phdr), p_type), &phdr.p_type)) { in read_loadbias()
119 if (!get_val<ElfW(Off)>(entry, addr + offsetof(ElfW(Phdr), p_offset), &phdr.p_offset)) { in read_loadbias()
123 if (!get_val<ElfW(Addr)>(entry, addr + offsetof(ElfW(Phdr), p_vaddr), &phdr.p_vaddr)) { in read_loadbias()
/bionic/libc/private/
Dbionic_globals.h97 void (*load_hook)(ElfW(Addr) base, const ElfW(Phdr)* phdr, ElfW(Half) phnum) = nullptr;
98 void (*unload_hook)(ElfW(Addr) base, const ElfW(Phdr)* phdr, ElfW(Half) phnum) = nullptr;
Dbionic_elf_tls.h46 __LIBC_HIDDEN__ bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count,
/bionic/tests/
Dlink_test.cpp65 const ElfW(Phdr)* phdr = reinterpret_cast<const ElfW(Phdr)*>(&info->dlpi_phdr[i]); in TEST()
131 const ElfW(Phdr)* table;
173 .table = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)), in TEST()
/bionic/libc/include/
Dlink.h48 const ElfW(Phdr)* dlpi_phdr;