/bionic/linker/ |
D | linker_phdr.h | 54 ElfW(Addr) load_bias() const { return load_bias_; } in load_bias() function 119 size_t phdr_count, ElfW(Addr) load_bias); 122 ElfW(Addr) load_bias); 125 ElfW(Addr) load_bias); 128 ElfW(Addr) load_bias, int fd, size_t* file_offset); 131 ElfW(Addr) load_bias, int fd, size_t* file_offset); 134 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, ElfW(Addr) load_bias, 139 ElfW(Addr) load_bias, ElfW(Dyn)** dynamic, 143 ElfW(Addr) load_bias);
|
D | linker_main.cpp | 65 ElfW(Addr)* base, ElfW(Addr)* load_bias); 169 si->load_bias = get_elf_exec_load_bias(ehdr_vdso); in add_vdso() 186 map.l_addr = info.load_bias; in init_link_map_head() 188 phdr_table_get_dynamic_section(info.phdr, info.phnum, info.load_bias, &map.l_ld, nullptr); in init_link_map_head() 358 get_elf_base_from_phdr(si->phdr, si->phnum, &si->base, &si->load_bias); in linker_main() 375 somain->load_bias); in linker_main() 534 ElfW(Addr)* base, ElfW(Addr)* load_bias) { in get_elf_base_from_phdr() argument 537 *load_bias = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_vaddr; in get_elf_base_from_phdr() 558 ElfW(Addr) seg_start = phdr->p_vaddr + si->load_bias; in set_bss_vma_name() 577 static void call_ifunc_resolvers(ElfW(Addr) load_bias) { in call_ifunc_resolvers() argument [all …]
|
D | linker_phdr.cpp | 739 ElfW(Addr) load_bias, int extra_prot_flags) { in _phdr_table_set_load_prot() 748 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_load_prot() 749 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_load_prot() 779 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_protect_segments() 780 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, 0); in phdr_table_protect_segments() 800 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_unprotect_segments() 801 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE); in phdr_table_unprotect_segments() 808 ElfW(Addr) load_bias, int prot_flags) { in _phdr_table_set_gnu_relro_prot() 833 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_gnu_relro_prot() 834 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_gnu_relro_prot() [all …]
|
D | linker_wrapper.cpp | 43 ElfW(Addr)* base, ElfW(Addr)* load_bias) { in get_elf_base_from_phdr() argument 46 *load_bias = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_vaddr; in get_elf_base_from_phdr() 61 ElfW(Addr) load_bias = 0; in __linker_init() 64 &base_addr, &load_bias); in __linker_init()
|
D | linker.cpp | 247 map->l_addr = info->load_bias; in notify_gdb_of_load() 603 si_->load_bias = elf_reader.load_bias(); in load() 826 ElfW(Addr) vaddr = address - si->load_bias; in find_containing_library() 1759 __libc_shared_globals()->load_hook(si->load_bias, si->phdr, si->phnum); in find_libraries() 1901 __libc_shared_globals()->unload_hook(si->load_bias, si->phdr, si->phnum); in soinfo_unload_impl() 2725 ElfW(Addr) address = offset + load_bias; in apply_relr_reloc() 2726 *reinterpret_cast<ElfW(Addr)*>(address) += load_bias; in apply_relr_reloc() 2775 phdr_table_get_dynamic_section(phdr, phnum, load_bias, &dynamic, &dynamic_flags); in prelink_image() 2796 (void) phdr_table_get_arm_exidx(phdr, phnum, load_bias, in prelink_image() 2801 if (__bionic_get_tls_segment(phdr, phnum, load_bias, &tls_segment)) { in prelink_image() [all …]
|
D | linker_relocate.cpp | 163 void* const rel_target = reinterpret_cast<void*>(reloc.r_offset + relocator.si->load_bias); in process_relocation_impl() 188 relocator.si->load_bias) < 0) { in process_relocation_impl() 198 relocator.si->load_bias) < 0) { in process_relocation_impl() 332 const ElfW(Addr) result = relocator.si->load_bias + get_addend_rel(); in process_relocation_impl() 354 const ElfW(Addr) ifunc_addr = relocator.si->load_bias + get_addend_rel(); in process_relocation_impl()
|
D | linker_soinfo.h | 238 ElfW(Addr) load_bias; 280 return call_ifunc_resolver(s->st_value + load_bias); in resolve_symbol_address() 283 return static_cast<ElfW(Addr)>(s->st_value + load_bias); in resolve_symbol_address()
|
D | dlfcn.cpp | 317 __libdl_info->load_bias = linker_si.load_bias; in get_libdl_info()
|
D | linker_soinfo.cpp | 428 ElfW(Addr) soaddr = reinterpret_cast<ElfW(Addr)>(addr) - load_bias; in ElfW() 449 ElfW(Addr) soaddr = reinterpret_cast<ElfW(Addr)>(addr) - load_bias; in ElfW()
|
/bionic/libc/malloc_debug/ |
D | MapData.cpp | 73 entry->load_bias = 0; in parse_line() 104 entry->load_bias = 0; in read_loadbias() 126 entry->load_bias = phdr.p_vaddr; in read_loadbias() 205 *rel_pc = pc - entry->start + entry->offset + prev_entry->load_bias; in find() 210 *rel_pc = pc - entry->start + entry->load_bias; in find()
|
D | MapData.h | 48 uintptr_t load_bias; member
|
/bionic/libc/bionic/ |
D | bionic_elf_tls.cpp | 57 ElfW(Addr) load_bias, TlsSegment* out) { in __bionic_get_tls_segment() 64 reinterpret_cast<void*>(load_bias + phdr.p_vaddr), in __bionic_get_tls_segment()
|
/bionic/tests/ |
D | link_test.cpp | 146 static ElfW(Dyn)* find_dynamic(const ProgHdr& phdr, ElfW(Addr) load_bias) { in ElfW() 149 return reinterpret_cast<ElfW(Dyn)*>(phdr.table[i].p_vaddr + load_bias); in ElfW()
|
/bionic/libc/private/ |
D | bionic_elf_tls.h | 47 ElfW(Addr) load_bias, TlsSegment* out);
|