Searched refs:ElfW (Results 1 – 12 of 12) sorted by relevance
/bionic/linker/ |
D | linker_phdr.h | 48 ElfW(Addr) load_start() { return reinterpret_cast<ElfW(Addr)>(load_start_); } in load_start() 50 ElfW(Addr) load_bias() { return load_bias_; } in load_bias() 51 const ElfW(Phdr)* loaded_phdr() { return loaded_phdr_; } in ElfW() function 60 bool CheckPhdr(ElfW(Addr)); 66 ElfW(Ehdr) header_; 70 ElfW(Phdr)* phdr_table_; 71 ElfW(Addr) phdr_size_; 78 ElfW(Addr) load_bias_; 81 const ElfW(Phdr)* loaded_phdr_; 84 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, [all …]
|
D | linker_phdr.cpp | 218 if (phdr_num_ < 1 || phdr_num_ > 65536/sizeof(ElfW(Phdr))) { in ReadProgramHeader() 223 ElfW(Addr) page_min = PAGE_START(header_.e_phoff); in ReadProgramHeader() 224 ElfW(Addr) page_max = PAGE_END(header_.e_phoff + (phdr_num_ * sizeof(ElfW(Phdr)))); in ReadProgramHeader() 225 ElfW(Addr) page_offset = PAGE_OFFSET(header_.e_phoff); in ReadProgramHeader() 236 phdr_table_ = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(mmap_result) + page_offset); in ReadProgramHeader() 250 size_t phdr_table_get_load_size(const ElfW(Phdr)* phdr_table, size_t phdr_count, in phdr_table_get_load_size() 251 ElfW(Addr)* out_min_vaddr, in phdr_table_get_load_size() 252 ElfW(Addr)* out_max_vaddr) { in phdr_table_get_load_size() 253 ElfW(Addr) min_vaddr = UINTPTR_MAX; in phdr_table_get_load_size() 254 ElfW(Addr) max_vaddr = 0; in phdr_table_get_load_size() [all …]
|
D | linker.h | 119 const ElfW(Phdr)* phdr; 121 ElfW(Addr) entry; 122 ElfW(Addr) base; 129 ElfW(Dyn)* dynamic; 142 ElfW(Sym)* symtab; 152 ElfW(Addr)** plt_got; 156 ElfW(Rela)* plt_rela; 159 ElfW(Rela)* rela; 162 ElfW(Rel)* plt_rel; 165 ElfW(Rel)* rel; [all …]
|
D | linker.cpp | 84 static ElfW(Addr) get_elf_exec_load_bias(const ElfW(Ehdr)* elf); 418 static ElfW(Sym)* soinfo_elf_lookup(soinfo* si, unsigned hash, const char* name) { in ElfW() function 419 ElfW(Sym)* symtab = si->symtab; in ElfW() 425 ElfW(Sym)* s = symtab + n; in ElfW() 482 static ElfW(Sym)* soinfo_do_lookup(soinfo* si, const char* name, soinfo** lsi) { in ElfW() function 484 ElfW(Sym)* s = nullptr; in ElfW() 646 ElfW(Sym)* dlsym_handle_lookup(soinfo* si, soinfo** found, const char* name) { in ElfW() function 657 ElfW(Sym)* result = soinfo_elf_lookup(current_soinfo, elfhash(name), name); in ElfW() 678 ElfW(Sym)* dlsym_linear_lookup(const char* name, soinfo** found, soinfo* start) { in ElfW() function 685 ElfW(Sym)* s = nullptr; in ElfW() [all …]
|
D | dlfcn.cpp | 102 ElfW(Sym)* sym = nullptr; in dlsym() 148 ElfW(Sym)* sym = dladdr_find_symbol(si, addr); in dladdr() 197 static ElfW(Sym) g_libdl_symtab[] = {
|
/bionic/libc/include/ |
D | link.h | 37 #define ElfW(type) Elf64_ ## type macro 39 #define ElfW(type) Elf32_ ## type 43 ElfW(Addr) dlpi_addr; 45 const ElfW(Phdr)* dlpi_phdr; 46 ElfW(Half) dlpi_phnum; 58 ElfW(Addr) l_addr; 60 ElfW(Dyn)* l_ld; 69 ElfW(Addr) r_brk; 75 ElfW(Addr) r_ldbase;
|
/bionic/libc/bionic/ |
D | vdso.cpp | 68 ElfW(Ehdr)* vdso_ehdr = reinterpret_cast<ElfW(Ehdr)*>(vdso_ehdr_addr); in __libc_init_vdso() 75 ElfW(Shdr)* vdso_shdr = reinterpret_cast<ElfW(Shdr)*>(vdso_ehdr_addr + vdso_ehdr->e_shoff); in __libc_init_vdso() 78 symbol_count = vdso_shdr[i].sh_size / sizeof(ElfW(Sym)); in __libc_init_vdso() 86 ElfW(Addr) vdso_addr = 0; in __libc_init_vdso() 87 ElfW(Dyn)* vdso_dyn = NULL; in __libc_init_vdso() 88 ElfW(Phdr)* vdso_phdr = reinterpret_cast<ElfW(Phdr)*>(vdso_ehdr_addr + vdso_ehdr->e_phoff); in __libc_init_vdso() 91 vdso_dyn = reinterpret_cast<ElfW(Dyn)*>(vdso_ehdr_addr + vdso_phdr[i].p_offset); in __libc_init_vdso() 102 ElfW(Sym)* symtab = NULL; in __libc_init_vdso() 103 for (ElfW(Dyn)* d = vdso_dyn; d->d_tag != DT_NULL; ++d) { in __libc_init_vdso() 107 symtab = reinterpret_cast<ElfW(Sym)*>(vdso_addr + d->d_un.d_ptr); in __libc_init_vdso()
|
D | dl_iterate_phdr_static.cpp | 39 ElfW(Ehdr)* ehdr = reinterpret_cast<ElfW(Ehdr)*>(&__executable_start); in dl_iterate_phdr() 53 …exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_pho… in dl_iterate_phdr() 64 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(getauxval(AT_SYSINFO_EHDR)); in dl_iterate_phdr() 73 …vdso_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<char*>(ehdr_vdso) + ehdr_vdso… in dl_iterate_phdr() 77 vdso_info.dlpi_addr = (ElfW(Addr)) ehdr_vdso - vdso_info.dlpi_phdr[i].p_vaddr; in dl_iterate_phdr()
|
D | libc_init_static.cpp | 72 ElfW(Phdr)* phdr_start = reinterpret_cast<ElfW(Phdr)*>(getauxval(AT_PHDR)); in apply_gnu_relro() 75 for (ElfW(Phdr)* phdr = phdr_start; phdr < (phdr_start + phdr_ct); phdr++) { in apply_gnu_relro() 80 ElfW(Addr) seg_page_start = PAGE_START(phdr->p_vaddr); in apply_gnu_relro() 81 ElfW(Addr) seg_page_end = PAGE_END(phdr->p_vaddr + phdr->p_memsz); in apply_gnu_relro()
|
D | getauxval.cpp | 35 __LIBC_HIDDEN__ ElfW(auxv_t)* __libc_auxv = NULL; 38 for (ElfW(auxv_t)* v = __libc_auxv; v->a_type != AT_NULL; ++v) { in getauxval()
|
/bionic/libc/private/ |
D | KernelArgumentBlock.h | 49 auxv = reinterpret_cast<ElfW(auxv_t)*>(p); in KernelArgumentBlock() 56 for (ElfW(auxv_t)* v = auxv; v->a_type != AT_NULL; ++v) { 73 ElfW(auxv_t)* auxv;
|
D | bionic_auxv.h | 37 extern ElfW(auxv_t)* __libc_auxv;
|