Lines Matching defs:ehdr
271 Elf32_Ehdr *ehdr = addr;
274 switch (ehdr->e_ident[EI_DATA]) {
293 ehdr->e_ident[EI_DATA], fname);
297 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 ||
298 (r2(&ehdr->e_type) != ET_EXEC && r2(&ehdr->e_type) != ET_DYN) ||
299 ehdr->e_ident[EI_VERSION] != EV_CURRENT) {
304 switch (r2(&ehdr->e_machine)) {
327 r2(&ehdr->e_machine), fname);
331 switch (ehdr->e_ident[EI_CLASS]) {
333 if (r2(&ehdr->e_ehsize) != sizeof(Elf32_Ehdr) ||
334 r2(&ehdr->e_shentsize) != sizeof(Elf32_Shdr)) {
339 rc = do_sort_32(ehdr, fname, custom_sort);
343 Elf64_Ehdr *const ghdr = (Elf64_Ehdr *)ehdr;
356 ehdr->e_ident[EI_CLASS], fname);