mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM64: elf: set ELF_CLASS64 for ARM64
@ 2026-01-05  9:02 Ahmad Fatoum
  2026-01-06  7:37 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-01-05  9:02 UTC (permalink / raw)
  To: barebox; +Cc: 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.

Signed-off-by: Ahmad Fatoum <a.fatoum@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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-01-06  7:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-05  9:02 [PATCH] ARM64: elf: set ELF_CLASS64 for ARM64 Ahmad Fatoum
2026-01-06  7:37 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox