Home
last modified time | relevance | path

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

12

/linux/kernel/
A 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/arch/powerpc/boot/
A 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()
A Daddnote.c102 #define EI_DATA 5 macro
145 e_data = buf[E_IDENT+EI_DATA]; in main()
A Delf.h122 #define EI_DATA 5 macro
/linux/tools/testing/selftests/kvm/lib/
A 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/arch/mips/tools/
A Delf-entry.c65 switch (hdr.ehdr32.e_ident[EI_DATA]) { in main()
82 switch (hdr.ehdr32.e_ident[EI_DATA]) { in main()
A Dloongson3-llsc-check.c280 if (eh->e_ident[EI_DATA] != ELFDATA2LSB) { in main()
/linux/arch/mips/boot/tools/
A 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/arch/mips/vdso/
A Dgenvdso.c160 switch (ehdr->e_ident[EI_DATA]) { in map_vdso()
163 need_swap = ehdr->e_ident[EI_DATA] != HOST_ORDER; in map_vdso()
/linux/scripts/mod/
A Dmk_elfconfig.c31 switch (ei[EI_DATA]) { in main()
/linux/drivers/remoteproc/
A Dremoteproc_elf_loader.c82 if (ehdr->e_ident[EI_DATA] != ELFDATA2LSB) {
84 if (ehdr->e_ident[EI_DATA] != ELFDATA2MSB) {
A Dremoteproc_elf_helpers.h34 hdr->e_ident[EI_DATA] = ELFDATA2LSB; in elf_hdr_init_ident()
/linux/scripts/
A Dsorttable.c335 switch (ehdr->e_ident[EI_DATA]) { in do_file()
354 ehdr->e_ident[EI_DATA], fname); in do_file()
A Drecordmcount.c490 switch (ehdr->e_ident[EI_DATA]) { in do_file()
494 ehdr->e_ident[EI_DATA], fname); in do_file()
A Dinsert-sys-cert.c336 if (hdr->e_ident[EI_DATA] != endianness()) { in main()
/linux/arch/arm/vdso/
A Dvdsomunge.c159 swap = inhdr->e_ident[EI_DATA] != HOST_ORDER; in main()
/linux/include/uapi/linux/
A Delf.h335 #define EI_DATA 5 macro
/linux/arch/arm64/kvm/hyp/nvhe/
A Dgen-hyprel.c287 assert_eq(elf.ehdr->e_ident[EI_DATA], ELFENDIAN, "%u"); in init_elf()
/linux/tools/perf/util/
A Dgenelf.c276 ehdr->e_ident[EI_DATA] = GEN_ELF_ENDIAN; in jit_write_elf()
A Dsymbol-minimal.c110 need_swap = check_need_swap(e_ident[EI_DATA]); in filename__read_build_id()
/linux/fs/proc/
A Dkcore.c345 [EI_DATA] = ELF_DATA, in read_kcore()
/linux/arch/powerpc/platforms/powernv/
A Dopal-core.c359 elf->e_ident[EI_DATA] = ELFDATA2MSB; in create_opalcore()
/linux/arch/s390/kernel/
A Dcrash_dump.c517 ehdr->e_ident[EI_DATA] = ELFDATA2MSB; in ehdr_init()
/linux/arch/mips/boot/
A Delf2ecoff.c315 if (ex.e_ident[EI_DATA] == ELFDATA2MSB) in main()
/linux/tools/lib/bpf/
A Dlinker.c327 linker->elf_hdr->e_ident[EI_DATA] = ELFDATA2LSB; in init_output_elf()
329 linker->elf_hdr->e_ident[EI_DATA] = ELFDATA2MSB; in init_output_elf()
579 if (ehdr->e_ident[EI_DATA] != host_endianness) { in linker_load_obj_file()

Completed in 37 milliseconds

12