diff options
-rw-r--r-- | arch/arm64/include/asm/elf.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h index e7fa87f9201b..a3e4a5564ea3 100644 --- a/arch/arm64/include/asm/elf.h +++ b/arch/arm64/include/asm/elf.h | |||
@@ -90,11 +90,24 @@ typedef struct user_fpsimd_state elf_fpregset_t; | |||
90 | * These are used to set parameters in the core dumps. | 90 | * These are used to set parameters in the core dumps. |
91 | */ | 91 | */ |
92 | #define ELF_CLASS ELFCLASS64 | 92 | #define ELF_CLASS ELFCLASS64 |
93 | #ifdef __AARCH64EB__ | ||
94 | #define ELF_DATA ELFDATA2MSB | ||
95 | #else | ||
93 | #define ELF_DATA ELFDATA2LSB | 96 | #define ELF_DATA ELFDATA2LSB |
97 | #endif | ||
94 | #define ELF_ARCH EM_AARCH64 | 98 | #define ELF_ARCH EM_AARCH64 |
95 | 99 | ||
100 | /* | ||
101 | * This yields a string that ld.so will use to load implementation | ||
102 | * specific libraries for optimization. This is more specific in | ||
103 | * intent than poking at uname or /proc/cpuinfo. | ||
104 | */ | ||
96 | #define ELF_PLATFORM_SIZE 16 | 105 | #define ELF_PLATFORM_SIZE 16 |
106 | #ifdef __AARCH64EB__ | ||
107 | #define ELF_PLATFORM ("aarch64_be") | ||
108 | #else | ||
97 | #define ELF_PLATFORM ("aarch64") | 109 | #define ELF_PLATFORM ("aarch64") |
110 | #endif | ||
98 | 111 | ||
99 | /* | 112 | /* |
100 | * This is used to ensure we don't load something for the wrong architecture. | 113 | * This is used to ensure we don't load something for the wrong architecture. |