Home
last modified time | relevance | path

Searched refs:e_ident (Results 1 – 25 of 31) sorted by relevance

12

/linux-2.6.39/arch/powerpc/boot/
Delf_util.c24 if (!(elf64->e_ident[EI_MAG0] == ELFMAG0 && in parse_elf64()
25 elf64->e_ident[EI_MAG1] == ELFMAG1 && in parse_elf64()
26 elf64->e_ident[EI_MAG2] == ELFMAG2 && in parse_elf64()
27 elf64->e_ident[EI_MAG3] == ELFMAG3 && in parse_elf64()
28 elf64->e_ident[EI_CLASS] == ELFCLASS64 && in parse_elf64()
29 elf64->e_ident[EI_DATA] == ELFDATA2MSB && in parse_elf64()
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()
[all …]
Delf.h55 unsigned char e_ident[EI_NIDENT]; member
72 unsigned char e_ident[16]; /* ELF "magic number" */ member
Dof.c54 if (elf64->e_ident[EI_CLASS] == ELFCLASS64) { in of_image_hdr()
/linux-2.6.39/scripts/
Drecordmcount.c265 switch (ehdr->e_ident[EI_DATA]) { in do_file()
269 ehdr->e_ident[EI_DATA], fname); in do_file()
289 if (0 != memcmp(ELFMAG, ehdr->e_ident, SELFMAG) in do_file()
291 || EV_CURRENT != ehdr->e_ident[EI_VERSION]) { in do_file()
317 switch (ehdr->e_ident[EI_CLASS]) { in do_file()
320 ehdr->e_ident[EI_CLASS], fname); in do_file()
/linux-2.6.39/fs/proc/
Dvmcore.c500 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 || in parse_crash_elf64_headers()
503 ehdr.e_ident[EI_CLASS] != ELFCLASS64 || in parse_crash_elf64_headers()
504 ehdr.e_ident[EI_VERSION] != EV_CURRENT || in parse_crash_elf64_headers()
556 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 || in parse_crash_elf32_headers()
559 ehdr.e_ident[EI_CLASS] != ELFCLASS32|| in parse_crash_elf32_headers()
560 ehdr.e_ident[EI_VERSION] != EV_CURRENT || in parse_crash_elf32_headers()
600 unsigned char e_ident[EI_NIDENT]; in parse_crash_elf_headers() local
605 rc = read_from_oldmem(e_ident, EI_NIDENT, &addr, 0); in parse_crash_elf_headers()
608 if (memcmp(e_ident, ELFMAG, SELFMAG) != 0) { in parse_crash_elf_headers()
614 if (e_ident[EI_CLASS] == ELFCLASS64) { in parse_crash_elf_headers()
[all …]
Dkcore.c328 memcpy(elf->e_ident, ELFMAG, SELFMAG); in elf_kcore_store_hdr()
329 elf->e_ident[EI_CLASS] = ELF_CLASS; in elf_kcore_store_hdr()
330 elf->e_ident[EI_DATA] = ELF_DATA; in elf_kcore_store_hdr()
331 elf->e_ident[EI_VERSION]= EV_CURRENT; in elf_kcore_store_hdr()
332 elf->e_ident[EI_OSABI] = ELF_OSABI; in elf_kcore_store_hdr()
333 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in elf_kcore_store_hdr()
/linux-2.6.39/arch/s390/include/asm/
Delf.h144 && (x)->e_ident[EI_CLASS] == ELF_CLASS)
147 && (x)->e_ident[EI_CLASS] == ELF_CLASS)
192 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
/linux-2.6.39/arch/x86/boot/compressed/
Dmisc.c289 if (ehdr.e_ident[EI_MAG0] != ELFMAG0 || in parse_elf()
290 ehdr.e_ident[EI_MAG1] != ELFMAG1 || in parse_elf()
291 ehdr.e_ident[EI_MAG2] != ELFMAG2 || in parse_elf()
292 ehdr.e_ident[EI_MAG3] != ELFMAG3) { in parse_elf()
Drelocs.c223 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) { in read_ehdr()
226 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32) { in read_ehdr()
229 if (ehdr.e_ident[EI_DATA] != ELFDATA2LSB) { in read_ehdr()
232 if (ehdr.e_ident[EI_VERSION] != EV_CURRENT) { in read_ehdr()
/linux-2.6.39/arch/tile/include/asm/
Delf.h61 ((x)->e_ident[EI_CLASS] == ELF_CLASS && \
140 ((x)->e_ident[EI_CLASS] == ELFCLASS32 && \
/linux-2.6.39/arch/mips/include/asm/
Delf.h188 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \
217 if (__h->e_ident[EI_CLASS] != ELFCLASS64) \
305 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
/linux-2.6.39/arch/ia64/hp/sim/boot/
Dbootloader.c115 if (elf->e_ident[0] == 0x7f && strncmp(elf->e_ident + 1, "ELF", 3) != 0) { in start_bootloader()
/linux-2.6.39/arch/alpha/boot/tools/
Dobjstrip.c147 if (elf->e_ident[0] == 0x7f && strncmp((char *)elf->e_ident + 1, "ELF", 3) == 0) { in main()
/linux-2.6.39/fs/
Dbinfmt_em86.c35 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_em86()
Dbinfmt_elf.c592 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
703 if (memcmp(loc->interp_elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
1012 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_library()
1227 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_header()
1228 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_header()
1229 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_header()
1230 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_header()
1231 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_header()
Dbinfmt_elf_fdpic.c107 if (memcmp(hdr->e_ident, ELFMAG, SELFMAG) != 0) in is_elf_fdpic()
1318 memcpy(elf->e_ident, ELFMAG, SELFMAG); in fill_elf_fdpic_header()
1319 elf->e_ident[EI_CLASS] = ELF_CLASS; in fill_elf_fdpic_header()
1320 elf->e_ident[EI_DATA] = ELF_DATA; in fill_elf_fdpic_header()
1321 elf->e_ident[EI_VERSION] = EV_CURRENT; in fill_elf_fdpic_header()
1322 elf->e_ident[EI_OSABI] = ELF_OSABI; in fill_elf_fdpic_header()
1323 memset(elf->e_ident+EI_PAD, 0, EI_NIDENT-EI_PAD); in fill_elf_fdpic_header()
/linux-2.6.39/arch/mips/kernel/
Dbinfmt_elfn32.c40 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \
Dbinfmt_elfo32.c40 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \
/linux-2.6.39/include/linux/
Delf.h216 unsigned char e_ident[EI_NIDENT]; member
233 unsigned char e_ident[EI_NIDENT]; /* ELF "magic number" */ member
/linux-2.6.39/arch/sparc/include/asm/
Delf_64.h198 do { if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
/linux-2.6.39/arch/parisc/include/asm/
Delf.h312 #define elf_check_arch(x) ((x)->e_machine == EM_PARISC && (x)->e_ident[EI_CLASS] == ELF_CLASS)
/linux-2.6.39/arch/powerpc/oprofile/cell/
Dvma_map.c135 if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) { in create_vma_map()
/linux-2.6.39/sound/pci/mixart/
Dmixart_hwdep.c73 u8 e_ident[16]; member
108 if ( elf32_magic_number[i] != elf_header->e_ident[i] ) in mixart_load_elf()
/linux-2.6.39/arch/powerpc/include/asm/
Delf.h238 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
/linux-2.6.39/arch/x86/vdso/
Dvdso32-setup.c165 BUG_ON(memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0 || in relocate_vdso()

12