Home
last modified time | relevance | path

Searched refs:EI_DATA (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v5.4/kernel/
Dkexec_elf.c31 if (ehdr->e_ident[EI_DATA] == ELFDATA2LSB) in elf64_to_cpu()
33 else if (ehdr->e_ident[EI_DATA] == ELFDATA2MSB) in elf64_to_cpu()
41 if (ehdr->e_ident[EI_DATA] == ELFDATA2LSB) in elf32_to_cpu()
43 else if (ehdr->e_ident[EI_DATA] == ELFDATA2MSB) in elf32_to_cpu()
51 if (ehdr->e_ident[EI_DATA] == ELFDATA2LSB) in elf16_to_cpu()
53 else if (ehdr->e_ident[EI_DATA] == ELFDATA2MSB) in elf16_to_cpu()
138 } else if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB && in elf_read_ehdr()
139 ehdr->e_ident[EI_DATA] != ELFDATA2MSB) { in elf_read_ehdr()
/Linux-v5.4/arch/powerpc/boot/
Delf_util.c26 elf64->e_ident[EI_DATA] == ELFDATA2LSB && in parse_elf64()
28 elf64->e_ident[EI_DATA] == ELFDATA2MSB && in parse_elf64()
61 elf32->e_ident[EI_DATA] == ELFDATA2MSB && in parse_elf32()
Daddnote.c102 #define EI_DATA 5 macro
145 e_data = buf[E_IDENT+EI_DATA]; in main()
Delf.h122 #define EI_DATA 5 macro
/Linux-v5.4/tools/testing/selftests/kvm/lib/
Delf.c53 && (ident[EI_DATA] == ELFDATA2LSB)) in elfhdr_get()
55 && (ident[EI_DATA] == ELFDATA2MSB)), "Current " in elfhdr_get()
66 ident[EI_DATA], ELFDATA2LSB, ELFDATA2MSB); in elfhdr_get()
/Linux-v5.4/arch/mips/tools/
Delf-entry.c62 switch (hdr.ehdr32.e_ident[EI_DATA]) { in main()
78 switch (hdr.ehdr32.e_ident[EI_DATA]) { in main()
/Linux-v5.4/arch/mips/boot/tools/
Drelocs.c163 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf16_to_cpu()
171 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf32_to_cpu()
179 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in cpu_to_elf32()
191 if (ehdr.e_ident[EI_DATA] == ELFDATA2LSB) in elf64_to_cpu()
216 if ((ehdr.e_ident[EI_DATA] != ELFDATA2LSB) && in read_ehdr()
217 (ehdr.e_ident[EI_DATA] != ELFDATA2MSB)) in read_ehdr()
/Linux-v5.4/scripts/mod/
Dmk_elfconfig.c31 switch (ei[EI_DATA]) { in main()
/Linux-v5.4/arch/mips/vdso/
Dgenvdso.c156 switch (ehdr->e_ident[EI_DATA]) { in map_vdso()
159 need_swap = ehdr->e_ident[EI_DATA] != HOST_ORDER; in map_vdso()
/Linux-v5.4/drivers/remoteproc/
Dremoteproc_elf_loader.c62 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
64 if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
/Linux-v5.4/scripts/
Dsortextable.c274 switch (ehdr->e_ident[EI_DATA]) { in do_file()
277 ehdr->e_ident[EI_DATA], fname); in do_file()
Drecordmcount.c467 switch (ehdr->e_ident[EI_DATA]) { in do_file()
471 ehdr->e_ident[EI_DATA], fname); in do_file()
Dinsert-sys-cert.c336 if (hdr->e_ident[EI_DATA] != endianness()) { in main()
/Linux-v5.4/arch/arm/vdso/
Dvdsomunge.c159 swap = inhdr->e_ident[EI_DATA] != HOST_ORDER; in main()
/Linux-v5.4/arch/powerpc/oprofile/cell/
Dvma_map.c100 [EI_DATA] = ELFDATA2MSB, in create_vma_map()
/Linux-v5.4/include/uapi/linux/
Delf.h334 #define EI_DATA 5 macro
/Linux-v5.4/tools/perf/util/
Dsymbol-minimal.c108 need_swap = check_need_swap(e_ident[EI_DATA]); in filename__read_build_id()
Dgenelf.c281 ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN; in jit_write_elf()
Dsymbol-elf.c746 if (dso__swap_init(dso, ehdr.e_ident[EI_DATA])) { in symsrc__init()
2072 elf_getident(*elf, NULL)[EI_DATA]) == NULL) { in populate_sdt_note()
/Linux-v5.4/arch/powerpc/platforms/powernv/
Dopal-core.c358 elf->e_ident[EI_DATA] = ELFDATA2MSB; in create_opalcore()
/Linux-v5.4/fs/proc/
Dkcore.c341 [EI_DATA] = ELF_DATA, in read_kcore()
/Linux-v5.4/arch/s390/kernel/
Dcrash_dump.c517 ehdr->e_ident[EI_DATA] = ELFDATA2MSB; in ehdr_init()
/Linux-v5.4/arch/mips/boot/
Delf2ecoff.c315 if (ex.e_ident[EI_DATA] == ELFDATA2MSB) in main()
/Linux-v5.4/arch/x86/tools/
Drelocs.c350 if (ehdr.e_ident[EI_DATA] != ELFDATA2LSB) { in read_ehdr()
/Linux-v5.4/arch/powerpc/kernel/
Dfadump.c847 elf->e_ident[EI_DATA] = ELF_DATA; in fadump_init_elfcore_header()

12