Home
last modified time | relevance | path

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

/bionic/linker/
Dlinker_phdr.h55 ElfW(Addr) load_bias() const { return load_bias_; } in load_bias() function
126 ElfW(Addr) load_bias, const GnuPropertySection* prop = nullptr);
129 ElfW(Addr) load_bias);
132 ElfW(Addr) load_bias);
135 ElfW(Addr) load_bias, int fd, size_t* file_offset);
138 ElfW(Addr) load_bias, int fd, size_t* file_offset);
141 int phdr_table_get_arm_exidx(const ElfW(Phdr)* phdr_table, size_t phdr_count, ElfW(Addr) load_bias,
146 ElfW(Addr) load_bias, ElfW(Dyn)** dynamic,
150 ElfW(Addr) load_bias);
Dlinker_main.cpp66 ElfW(Addr)* base, ElfW(Addr)* load_bias);
70 void __libc_init_mte(const void* phdr_start, size_t phdr_count, uintptr_t load_bias);
172 si->load_bias = get_elf_exec_load_bias(ehdr_vdso); in add_vdso()
189 map.l_addr = info.load_bias; in init_link_map_head()
191 phdr_table_get_dynamic_section(info.phdr, info.phnum, info.load_bias, &map.l_ld, nullptr); in init_link_map_head()
371 get_elf_base_from_phdr(si->phdr, si->phnum, &si->base, &si->load_bias); in linker_main()
388 somain->load_bias); in linker_main()
403 (phdr_table_protect_segments(somain->phdr, somain->phnum, somain->load_bias, in linker_main()
410 __libc_init_mte(somain->phdr, somain->phnum, somain->load_bias); in linker_main()
563 ElfW(Addr)* base, ElfW(Addr)* load_bias) { in get_elf_base_from_phdr() argument
[all …]
Dlinker_wrapper.cpp43 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()
Dlinker_note_gnu_property.cpp40 : GnuPropertySection(si->phdr, si->phnum, si->load_bias, si->get_realpath()) {} in GnuPropertySection()
43 const ElfW(Addr) load_bias, const char* name) { in GnuPropertySection()
45 auto note_gnu_property = FindSegment(phdr, phdr_count, load_bias, name); in GnuPropertySection()
55 const ElfW(Addr) load_bias, in ElfW()
78 auto note_nhdr = reinterpret_cast<ElfW(NhdrGNUProperty)*>(load_bias + phdr[i].p_vaddr); in ElfW()
Dlinker_phdr.cpp794 ElfW(Addr) load_bias, int extra_prot_flags) { in _phdr_table_set_load_prot()
803 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_load_prot()
804 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_load_prot()
844 ElfW(Addr) load_bias, const GnuPropertySection* prop __unused) { in phdr_table_protect_segments()
851 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, prot); in phdr_table_protect_segments()
871 size_t phdr_count, ElfW(Addr) load_bias) { in phdr_table_unprotect_segments()
872 return _phdr_table_set_load_prot(phdr_table, phdr_count, load_bias, PROT_WRITE); in phdr_table_unprotect_segments()
879 ElfW(Addr) load_bias, int prot_flags) { in _phdr_table_set_gnu_relro_prot()
904 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr) + load_bias; in _phdr_table_set_gnu_relro_prot()
905 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz) + load_bias; in _phdr_table_set_gnu_relro_prot()
[all …]
Dlinker_note_gnu_property.h79 GnuPropertySection(const ElfW(Phdr)* phdr, size_t phdr_count, const ElfW(Addr) load_bias,
88 const ElfW(Addr) load_bias, const char* name) const;
Dlinker_relocate.cpp163 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()
Dlinker_soinfo.h238 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()
Ddlfcn.cpp317 __libdl_info->load_bias = linker_si.load_bias; in get_libdl_info()
Dlinker_soinfo.cpp428 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/
DMapData.cpp73 entry->load_bias = 0; in parse_line()
104 entry->load_bias = 0; in read_loadbias()
129 entry->load_bias = phdr.p_vaddr - phdr.p_offset; in read_loadbias()
208 *rel_pc = pc - entry->start + entry->offset + prev_entry->load_bias; in find()
213 *rel_pc = pc - entry->start + entry->load_bias; in find()
DMapData.h48 uintptr_t load_bias; member
/bionic/libc/bionic/
Dlibc_init_static.cpp207 const ElfW(Addr) load_bias) { in __get_memtag_note()
213 ElfW(Addr) p = load_bias + phdr->p_vaddr; in __get_memtag_note()
214 ElfW(Addr) note_end = load_bias + phdr->p_vaddr + phdr->p_memsz; in __get_memtag_note()
279 uintptr_t load_bias) { in __get_heap_tagging_level() argument
284 __get_memtag_note(reinterpret_cast<const ElfW(Phdr)*>(phdr_start), phdr_ct, load_bias); in __get_heap_tagging_level()
307 uintptr_t load_bias) { in __libc_init_mte() argument
308 HeapTaggingLevel level = __get_heap_tagging_level(phdr_start, phdr_ct, load_bias); in __libc_init_mte()
Dbionic_elf_tls.cpp58 ElfW(Addr) load_bias, TlsSegment* out) { in __bionic_get_tls_segment()
65 reinterpret_cast<void*>(load_bias + phdr.p_vaddr), in __bionic_get_tls_segment()
/bionic/libc/private/
Dbionic_elf_tls.h47 ElfW(Addr) load_bias, TlsSegment* out);
/bionic/tests/
Dlink_test.cpp146 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()