Lines Matching refs:Addr
62 static ElfW(Addr) get_elf_exec_load_bias(const ElfW(Ehdr)* elf);
65 ElfW(Addr)* base, ElfW(Addr)* load_bias);
167 si->base = reinterpret_cast<ElfW(Addr)>(ehdr_vdso); in add_vdso()
198 ElfW(Addr) entry_point;
300 static ElfW(Addr) linker_main(KernelArgumentBlock& args, const char* exe_to_load) { in linker_main()
499 ElfW(Addr) entry = exe_info.entry_point; in linker_main()
514 static ElfW(Addr) get_elf_exec_load_bias(const ElfW(Ehdr)* elf) { in get_elf_exec_load_bias()
515 ElfW(Addr) offset = elf->e_phoff; in get_elf_exec_load_bias()
522 return reinterpret_cast<ElfW(Addr)>(elf) + phdr->p_offset - phdr->p_vaddr; in get_elf_exec_load_bias()
534 ElfW(Addr)* base, ElfW(Addr)* load_bias) { in get_elf_base_from_phdr()
537 *load_bias = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_vaddr; in get_elf_base_from_phdr()
538 *base = reinterpret_cast<ElfW(Addr)>(phdr_table) - phdr_table[i].p_offset; in get_elf_base_from_phdr()
558 ElfW(Addr) seg_start = phdr->p_vaddr + si->load_bias; in set_bss_vma_name()
559 ElfW(Addr) seg_page_end = PAGE_END(seg_start + phdr->p_memsz); in set_bss_vma_name()
560 ElfW(Addr) seg_file_end = PAGE_END(seg_start + phdr->p_filesz); in set_bss_vma_name()
577 static void call_ifunc_resolvers(ElfW(Addr) load_bias) { in call_ifunc_resolvers()
579 ElfW(Addr)* offset = reinterpret_cast<ElfW(Addr)*>(r->r_offset + load_bias); in call_ifunc_resolvers()
580 ElfW(Addr) resolver = r->r_addend + load_bias; in call_ifunc_resolvers()
587 static void call_ifunc_resolvers(ElfW(Addr) load_bias) { in call_ifunc_resolvers()
589 ElfW(Addr)* offset = reinterpret_cast<ElfW(Addr)*>(r->r_offset + load_bias); in call_ifunc_resolvers()
590 ElfW(Addr) resolver = *offset + load_bias; in call_ifunc_resolvers()
621 static ElfW(Addr) __attribute__((noinline))
633 extern "C" ElfW(Addr) __linker_init(void* raw_args) { in __linker_init()
642 ElfW(Addr) linker_addr = getauxval(AT_BASE); in __linker_init()
646 ElfW(Addr) load_bias; in __linker_init()
656 const ElfW(Addr) load_bias = get_elf_exec_load_bias(elf_hdr); in __linker_init()
682 static ElfW(Addr) __attribute__((noinline))
743 ElfW(Addr) start_address = linker_main(args, exe_to_load); in __linker_init_post_relocation()