kernel/arch/alpha/boot/tools/objstrip.c
.. .. @@ -148,7 +148,7 @@ 148 148 #ifdef __ELF__ 149 149 elf = (struct elfhdr *) buf; 150 150 151 - if (elf->e_ident[0] == 0x7f && str_has_prefix((char *)elf->e_ident + 1, "ELF")) {151 + if (memcmp(&elf->e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) {152 152 if (elf->e_type != ET_EXEC) { 153 153 fprintf(stderr, "%s: %s is not an ELF executable\n", 154 154 prog_name, inname);