From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH] ARM64: elf: set ELF_CLASS64 for ARM64
Date: Mon, 5 Jan 2026 10:02:53 +0100 [thread overview]
Message-ID: <20260105090253.3299052-1-a.fatoum@barebox.org> (raw)
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
next reply other threads:[~2026-01-05 9:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-05 9:02 Ahmad Fatoum [this message]
2026-01-06 7:37 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260105090253.3299052-1-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox