ELFMAG
if (memcmp(elf.e_ident, ELFMAG, 4) != 0) {
memcmp(&ident[EI_MAG0], ELFMAG, 4) != 0) {
bcmp(&ehp->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) {
#define ISELF (strncmp(magic_buf, ELFMAG, SELFMAG) == 0)
bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) {
(memcmp(&ident[EI_MAG0], ELFMAG, 4) == 0) &&
if ((is_noelf = memcmp(&e32.e_ident[EI_MAG0], ELFMAG, SELFMAG)) != 0 ||
} else if ((is_noelf = memcmp(&ehdr.e_ident[EI_MAG0], ELFMAG,
if (*(int *)&elfhdr.e_ident == *(int *)(ELFMAG)) {
#define ISELF (strncmp(magic_buf, ELFMAG, SELFMAG) == 0)
bcopy(ELFMAG, ehdr.e_ident, SELFMAG);
if (mp->hdr.e_ident[i] != ELFMAG[i]) {
if (ehdr->e_ident[j] != ELFMAG[j]) {
if (mp->hdr.e_ident[i] != ELFMAG[i])