Lines Matching refs:elf32
52 Elf32_Ehdr *elf32 = hdr; in parse_elf32() local
56 if (!(elf32->e_ident[EI_MAG0] == ELFMAG0 && in parse_elf32()
57 elf32->e_ident[EI_MAG1] == ELFMAG1 && in parse_elf32()
58 elf32->e_ident[EI_MAG2] == ELFMAG2 && in parse_elf32()
59 elf32->e_ident[EI_MAG3] == ELFMAG3 && in parse_elf32()
60 elf32->e_ident[EI_CLASS] == ELFCLASS32 && in parse_elf32()
61 elf32->e_ident[EI_DATA] == ELFDATA2MSB && in parse_elf32()
62 (elf32->e_type == ET_EXEC || in parse_elf32()
63 elf32->e_type == ET_DYN) && in parse_elf32()
64 elf32->e_machine == EM_PPC)) in parse_elf32()
67 elf32ph = (Elf32_Phdr *) ((unsigned long)elf32 + elf32->e_phoff); in parse_elf32()
68 for (i = 0; i < elf32->e_phnum; i++, elf32ph++) in parse_elf32()
71 if (i >= elf32->e_phnum) in parse_elf32()