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.h120 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count,
123 size_t phdr_table_get_maximum_alignment(const ElfW(Phdr)* phdr_table, size_t phdr_count);
125 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
128 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count,
131 int phdr_table_protect_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
134 int phdr_table_serialize_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
137 int phdr_table_map_gnu_relro(const ElfW(Phdr)* phdr_table, size_t phdr_count,
141 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, ElfW(Addr) load_bias,
145 void phdr_table_get_dynamic_section(const ElfW(Phdr)* phdr_table, size_t phdr_count,
149 const char* phdr_table_get_interpreter_name(const ElfW(Phdr)* phdr_table, size_t phdr_count,
Dlinker_phdr.cpp494 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size() argument
502 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_load_size()
536 size_t phdr_table_get_maximum_alignment(const ElfW(Phdr)* phdr_table, size_t phdr_count) { in phdr_table_get_maximum_alignment() argument
540 const ElfW(Phdr)* phdr = &phdr_table[i]; in phdr_table_get_maximum_alignment()
793 static int _phdr_table_set_load_prot(const ElfW(Phdr)* phdr_table, size_t phdr_count, in _phdr_table_set_load_prot() argument
795 const ElfW(Phdr)* phdr = phdr_table; in _phdr_table_set_load_prot()
843 int phdr_table_protect_segments(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_protect_segments() argument
851 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, prot); in phdr_table_protect_segments()
870 int phdr_table_unprotect_segments(const ElfW(Phdr)* phdr_table, in phdr_table_unprotect_segments() argument
872 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE); in phdr_table_unprotect_segments()
[all …]
Dlinker_main.cpp65 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count,
545 const ElfW(Phdr)* phdr_table = in get_elf_exec_load_bias()
547 const ElfW(Phdr)* phdr_end = phdr_table + elf->e_phnum; in get_elf_exec_load_bias()
549 for (const ElfW(Phdr)* phdr = phdr_table; phdr < phdr_end; phdr++) { in get_elf_exec_load_bias()
562 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, in get_elf_base_from_phdr() argument
565 if (phdr_table[i].p_type == PT_PHDR) { in get_elf_base_from_phdr()
566 *load_bias = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_vaddr; in get_elf_base_from_phdr()
567 *base = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_offset; in get_elf_base_from_phdr()
/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.cpp57 bool __bionic_get_tls_segment(const ElfW(Phdr)* phdr_table, size_t phdr_count, in __bionic_get_tls_segment() argument
60 const ElfW(Phdr)& phdr = phdr_table[i]; in __bionic_get_tls_segment()