[PATCH] ARM64: elf: set ELF_CLASS64 for ARM64
Ahmad Fatoum
a.fatoum at barebox.org
Mon Jan 5 01:02:53 PST 2026
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 <a.fatoum at barebox.org>
---
arch/arm/include/asm/elf.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h
index 4043e6fd5b99..0b4704a4a561 100644
--- a/arch/arm/include/asm/elf.h
+++ b/arch/arm/include/asm/elf.h
@@ -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
--
2.47.3
More information about the barebox
mailing list