Searched refs:ehdr (Results 1 – 1 of 1) sorted by relevance
28 static Elf64_Ehdr *ehdr; variable70 return (void *)ehdr + shdr[syms[i].st_shndx].sh_offset + in get_sym_addr()152 ehdr = mmap(0, stat.st_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main()153 if (ehdr == MAP_FAILED) { in main()158 shdr = (void *)ehdr + ehdr->e_shoff; in main()159 num_shdr = ehdr->e_shnum; in main()163 syms = (void *)ehdr + symtab_shdr->sh_offset; in main()166 strtab = (void *)ehdr + shdr[symtab_shdr->sh_link].sh_offset; in main()167 shstrtab = (void *)ehdr + shdr[ehdr->e_shstrndx].sh_offset; in main()