aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/elf_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/boot/elf_util.c')
-rw-r--r--arch/powerpc/boot/elf_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/boot/elf_util.c b/arch/powerpc/boot/elf_util.c
index 1567a0c0f05c..316552dea4d8 100644
--- a/arch/powerpc/boot/elf_util.c
+++ b/arch/powerpc/boot/elf_util.c
@@ -26,7 +26,11 @@ int parse_elf64(void *hdr, struct elf_info *info)
26 elf64->e_ident[EI_MAG2] == ELFMAG2 && 26 elf64->e_ident[EI_MAG2] == ELFMAG2 &&
27 elf64->e_ident[EI_MAG3] == ELFMAG3 && 27 elf64->e_ident[EI_MAG3] == ELFMAG3 &&
28 elf64->e_ident[EI_CLASS] == ELFCLASS64 && 28 elf64->e_ident[EI_CLASS] == ELFCLASS64 &&
29#ifdef __LITTLE_ENDIAN__
30 elf64->e_ident[EI_DATA] == ELFDATA2LSB &&
31#else
29 elf64->e_ident[EI_DATA] == ELFDATA2MSB && 32 elf64->e_ident[EI_DATA] == ELFDATA2MSB &&
33#endif
30 (elf64->e_type == ET_EXEC || 34 (elf64->e_type == ET_EXEC ||
31 elf64->e_type == ET_DYN) && 35 elf64->e_type == ET_DYN) &&
32 elf64->e_machine == EM_PPC64)) 36 elf64->e_machine == EM_PPC64))