Searched refs:phdr_table (Results 1 – 6 of 6) sorted by relevance
/bionic/linker/ |
D | linker_phdr.h | 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, 138 void phdr_table_get_dynamic_section(const ElfW(Phdr)* phdr_table, size_t phdr_count, 142 const char* phdr_table_get_interpreter_name(const ElfW(Phdr) * phdr_table, size_t phdr_count,
|
D | linker_wrapper.cpp | 42 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, in get_elf_base_from_phdr() argument 45 if (phdr_table[i].p_type == PT_PHDR) { in get_elf_base_from_phdr() 46 *load_bias = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_vaddr; in get_elf_base_from_phdr() 47 *base = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_offset; in get_elf_base_from_phdr()
|
D | linker_phdr.cpp | 482 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size() argument 490 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size() 738 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot() argument 740 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_load_prot() 778 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_protect_segments() argument 780 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, 0); in phdr_table_protect_segments() 799 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_unprotect_segments() argument 801 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE); in phdr_table_unprotect_segments() 807 static int _phdr_table_set_gnu_relro_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_gnu_relro_prot() argument 809 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_gnu_relro_prot() [all …]
|
D | linker_main.cpp | 64 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, 516 const ElfW(Phdr)* phdr_table = 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() argument 536 if (phdr_table[i].p_type == PT_PHDR) { in get_elf_base_from_phdr() 537 *load_bias = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_vaddr; in get_elf_base_from_phdr() 538 *base = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_offset; in get_elf_base_from_phdr()
|
/bionic/libc/bionic/ |
D | bionic_elf_tls.cpp | 56 bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count, in __bionic_get_tls_segment() argument 59 const ElfW(Phdr)& phdr = phdr_table[i]; in __bionic_get_tls_segment()
|
/bionic/libc/private/ |
D | bionic_elf_tls.h | 46 __LIBC_HIDDEN__ bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count,
|