Lines Matching refs:ElfW
42 static void get_elf_base_from_phdr(const ElfW(Phdr)* phdr_table, size_t phdr_count, in get_elf_base_from_phdr()
43 ElfW(Addr)* base, ElfW(Addr)* load_bias) { 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()
57 extern "C" ElfW(Addr) __linker_init(void* raw_args) { in __linker_init()
60 ElfW(Addr) base_addr = 0; in __linker_init()
61 ElfW(Addr) load_bias = 0; in __linker_init()
63 reinterpret_cast<ElfW(Phdr)*>(args.getauxval(AT_PHDR)), args.getauxval(AT_PHNUM), in __linker_init()
66 ElfW(Addr) linker_addr = base_addr + reinterpret_cast<uintptr_t>(&linker_offset); in __linker_init()
67 ElfW(Addr) linker_entry_offset = reinterpret_cast<ElfW(Ehdr)*>(linker_addr)->e_entry; in __linker_init()
69 for (ElfW(auxv_t)* v = args.auxv; v->a_type != AT_NULL; ++v) { in __linker_init()