Home
last modified time | relevance | path

Searched refs:phdr_table (Results 1 – 6 of 6) sorted by relevance

/bionic/linker/
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() 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()
Dlinker_phdr.h109 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count,
112 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table,
115 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
118 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
121 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
124 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
128 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, ElfW(Addr) load_bias,
132 void phdr_table_get_dynamic_section(const ElfW(Phdr)* phdr_table, size_t phdr_count,
136 const char* phdr_table_get_interpreter_name(const ElfW(Phdr) * phdr_table, size_t phdr_count,
Dlinker_phdr.cpp485 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size() argument
493 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
696 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot() argument
698 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_load_prot()
736 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_protect_segments() argument
738 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, 0); in phdr_table_protect_segments()
757 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_unprotect_segments() argument
759 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE); in phdr_table_unprotect_segments()
765 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
767 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_gnu_relro_prot()
[all …]
Dlinker_main.cpp63 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count,
530 const ElfW(Phdr)* phdr_table =
532 const ElfW(Phdr)* phdr_end = phdr_table + elf->e_phnum;
534 for (const ElfW(Phdr)* phdr = phdr_table; phdr < phdr_end; phdr++) {
547 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, argument
550 if (phdr_table[i].p_type == PT_PHDR) {
551 *load_bias = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_vaddr;
552 *base = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_offset;
/bionic/libc/private/
Dbionic_elf_tls.h46 __LIBC_HIDDEN__ bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count,
/bionic/libc/bionic/
Dbionic_elf_tls.cpp56 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()