/linux-2.6.39/arch/powerpc/boot/ |
D | elf_util.c | 24 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 …]
|
D | elf.h | 55 unsigned char e_ident[EI_NIDENT]; member 72 unsigned char e_ident[16]; /* ELF "magic number" */ member
|
D | of.c | 54 if (elf64->e_ident[EI_CLASS] == ELFCLASS64) { in of_image_hdr()
|
/linux-2.6.39/scripts/ |
D | recordmcount.c | 265 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/ |
D | vmcore.c | 500 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 …]
|
D | kcore.c | 328 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/ |
D | elf.h | 144 && (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/ |
D | misc.c | 289 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()
|
D | relocs.c | 223 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/ |
D | elf.h | 61 ((x)->e_ident[EI_CLASS] == ELF_CLASS && \ 140 ((x)->e_ident[EI_CLASS] == ELFCLASS32 && \
|
/linux-2.6.39/arch/mips/include/asm/ |
D | elf.h | 188 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/ |
D | bootloader.c | 115 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/ |
D | objstrip.c | 147 if (elf->e_ident[0] == 0x7f && strncmp((char *)elf->e_ident + 1, "ELF", 3) == 0) { in main()
|
/linux-2.6.39/fs/ |
D | binfmt_em86.c | 35 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_em86()
|
D | binfmt_elf.c | 592 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()
|
D | binfmt_elf_fdpic.c | 107 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/ |
D | binfmt_elfn32.c | 40 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \
|
D | binfmt_elfo32.c | 40 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \
|
/linux-2.6.39/include/linux/ |
D | elf.h | 216 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/ |
D | elf_64.h | 198 do { if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
|
/linux-2.6.39/arch/parisc/include/asm/ |
D | elf.h | 312 #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/ |
D | vma_map.c | 135 if (memcmp(ehdr.e_ident, expected, EI_PAD) != 0) { in create_vma_map()
|
/linux-2.6.39/sound/pci/mixart/ |
D | mixart_hwdep.c | 73 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/ |
D | elf.h | 238 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
|
/linux-2.6.39/arch/x86/vdso/ |
D | vdso32-setup.c | 165 BUG_ON(memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0 || in relocate_vdso()
|