Skip to contentSkip to conversation

ARM64: elf: set ELF_CLASS64 for ARM64

PATCH Applied Ahmad Fatoum 2 participants 2 messages Jan 5 – Jan 6

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 arch/arm/include/asm/elf.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/include/asm/elf.h +2 -1
index 4043e6fd5b99..0b4704a4a561 100644
@@ -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
Applied
#1 lore raw
Quoted 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]>