Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/sgx/
H A Dmain.c59 static void *vdso_get_dyn(void *addr, Elf64_Dyn *dyntab, Elf64_Sxword tag) in vdso_get_dyn() argument
63 for (i = 0; dyntab[i].d_tag != DT_NULL; i++) in vdso_get_dyn()
64 if (dyntab[i].d_tag == tag) in vdso_get_dyn()
65 return addr + dyntab[i].d_un.d_ptr; in vdso_get_dyn()
72 Elf64_Dyn *dyntab = vdso_get_dyntab(addr); in vdso_get_symtab() local
74 symtab->elf_symtab = vdso_get_dyn(addr, dyntab, DT_SYMTAB); in vdso_get_symtab()
78 symtab->elf_symstrtab = vdso_get_dyn(addr, dyntab, DT_STRTAB); in vdso_get_symtab()
82 symtab->elf_hashtab = vdso_get_dyn(addr, dyntab, DT_HASH); in vdso_get_symtab()