ARM64: elf: set ELF_CLASS64 for ARM64
Subsystems (2)
PATCH 1/1 ARM64: elf: set ELF_CLASS64 for ARM64
This doesn't yet matter, because we don't make use of these definitions (they are meant for core files), but when we start processing the barebox proper ELF in PBL, it will become required, so fix this.
Signed-off-by Ahmad Fatoum <[email protected]>
--- arch/arm/include/asm/elf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/include/asm/elf.h +2 -1
@@ -39,15 +39,16 @@ typedef struct user_fp elf_fpregset_t;/* * These are used to set parameters in the core dumps. */ -#define ELF_CLASS ELFCLASS32#ifdef __ARMEB__#define ELF_DATA ELFDATA2MSB#else #define ELF_DATA ELFDATA2LSB#endif #ifdef CONFIG_CPU_64 +#define ELF_CLASS ELFCLASS64#define ELF_ARCH EM_AARCH64#else +#define ELF_CLASS ELFCLASS32#define ELF_ARCH EM_ARM#endif
Signature · 1 line
2.47.3
Sascha Hauer
AppliedQuoted 5 lines · Ahmad Fatoum
This doesn't yet matter, because we don't make use of these definitions (they are meant for core files), but when we start processing the barebox proper ELF in PBL, it will become required, so fix this.
Applied, thanks!
[1/1] ARM64: elf: set ELF_CLASS64 for ARM64
https://git.pengutronix.de/cgit/barebox/commit/?id=05dabaf16372 (link may not be stable)
Best regards,
Signature · 1 line
Sascha Hauer <[email protected]>