Lines Matching refs:ehdr
72 Elf32_Ehdr *ehdr = (Elf32_Ehdr *)page_addr; in get_build_id_32() local
77 if (ehdr->e_phnum > in get_build_id_32()
83 for (i = 0; i < ehdr->e_phnum; ++i) { in get_build_id_32()
97 Elf64_Ehdr *ehdr = (Elf64_Ehdr *)page_addr; in get_build_id_64() local
102 if (ehdr->e_phnum > in get_build_id_64()
108 for (i = 0; i < ehdr->e_phnum; ++i) { in get_build_id_64()
129 Elf32_Ehdr *ehdr; in build_id_parse() local
144 ehdr = (Elf32_Ehdr *)page_addr; in build_id_parse()
147 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) in build_id_parse()
151 if (ehdr->e_type != ET_EXEC && ehdr->e_type != ET_DYN) in build_id_parse()
154 if (ehdr->e_ident[EI_CLASS] == ELFCLASS32) in build_id_parse()
156 else if (ehdr->e_ident[EI_CLASS] == ELFCLASS64) in build_id_parse()