/Linux-v5.4/kernel/ |
D | kexec_elf.c | 31 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/ |
D | elf_util.c | 26 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()
|
D | addnote.c | 102 #define EI_DATA 5 macro 145 e_data = buf[E_IDENT+EI_DATA]; in main()
|
D | elf.h | 122 #define EI_DATA 5 macro
|
/Linux-v5.4/tools/testing/selftests/kvm/lib/ |
D | elf.c | 53 && (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/ |
D | elf-entry.c | 62 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/ |
D | relocs.c | 163 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/ |
D | mk_elfconfig.c | 31 switch (ei[EI_DATA]) { in main()
|
/Linux-v5.4/arch/mips/vdso/ |
D | genvdso.c | 156 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/ |
D | remoteproc_elf_loader.c | 62 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) { 64 if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
|
/Linux-v5.4/scripts/ |
D | sortextable.c | 274 switch (ehdr->e_ident[EI_DATA]) { in do_file() 277 ehdr->e_ident[EI_DATA], fname); in do_file()
|
D | recordmcount.c | 467 switch (ehdr->e_ident[EI_DATA]) { in do_file() 471 ehdr->e_ident[EI_DATA], fname); in do_file()
|
D | insert-sys-cert.c | 336 if (hdr->e_ident[EI_DATA] != endianness()) { in main()
|
/Linux-v5.4/arch/arm/vdso/ |
D | vdsomunge.c | 159 swap = inhdr->e_ident[EI_DATA] != HOST_ORDER; in main()
|
/Linux-v5.4/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 100 [EI_DATA] = ELFDATA2MSB, in create_vma_map()
|
/Linux-v5.4/include/uapi/linux/ |
D | elf.h | 334 #define EI_DATA 5 macro
|
/Linux-v5.4/tools/perf/util/ |
D | symbol-minimal.c | 108 need_swap = check_need_swap(e_ident[EI_DATA]); in filename__read_build_id()
|
D | genelf.c | 281 ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN; in jit_write_elf()
|
D | symbol-elf.c | 746 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/ |
D | opal-core.c | 358 elf->e_ident[EI_DATA] = ELFDATA2MSB; in create_opalcore()
|
/Linux-v5.4/fs/proc/ |
D | kcore.c | 341 [EI_DATA] = ELF_DATA, in read_kcore()
|
/Linux-v5.4/arch/s390/kernel/ |
D | crash_dump.c | 517 ehdr->e_ident[EI_DATA] = ELFDATA2MSB; in ehdr_init()
|
/Linux-v5.4/arch/mips/boot/ |
D | elf2ecoff.c | 315 if (ex.e_ident[EI_DATA] == ELFDATA2MSB) in main()
|
/Linux-v5.4/arch/x86/tools/ |
D | relocs.c | 350 if (ehdr.e_ident[EI_DATA] != ELFDATA2LSB) { in read_ehdr()
|
/Linux-v5.4/arch/powerpc/kernel/ |
D | fadump.c | 847 elf->e_ident[EI_DATA] = ELF_DATA; in fadump_init_elfcore_header()
|