From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH] imd: drop .barebox_imd section from arm/riscv non-PBL lds
Date: Mon,  3 Nov 2025 08:42:40 +0100	[thread overview]
Message-ID: <20251103074241.299831-1-a.fatoum@barebox.org> (raw)
Both ARM and RISC-V are platforms that always have a PBL in front of
barebox proper.
As this means any IMD tags in barebox proper would be usually compressed
and thus not visible to software outside, we can just drop these
sections from the barebox.lds.S, knowing that pbl.lds.S includes them.
Signed-off-by: Ahmad Fatoum <a.fatoum@barebox.org>
---
 arch/arm/lib32/barebox.lds.S | 2 --
 arch/arm/lib64/barebox.lds.S | 2 --
 arch/riscv/lib/barebox.lds.S | 2 --
 3 files changed, 6 deletions(-)
diff --git a/arch/arm/lib32/barebox.lds.S b/arch/arm/lib32/barebox.lds.S
index b304561a9859..877788eb8083 100644
--- a/arch/arm/lib32/barebox.lds.S
+++ b/arch/arm/lib32/barebox.lds.S
@@ -69,8 +69,6 @@ SECTIONS
 		CONSTRUCTORS
 	}
 
-	.barebox_imd : { BAREBOX_IMD }
-
 	. = .;
 
 	BAREBOX_RELOCATION_TABLE
diff --git a/arch/arm/lib64/barebox.lds.S b/arch/arm/lib64/barebox.lds.S
index e6406b04d135..44f23fe275dc 100644
--- a/arch/arm/lib64/barebox.lds.S
+++ b/arch/arm/lib64/barebox.lds.S
@@ -46,8 +46,6 @@ SECTIONS
 
 	.data : { *(.data*) }
 
-	.barebox_imd : { BAREBOX_IMD }
-
 	BAREBOX_RELOCATION_TABLE
 
 	_edata = .;
diff --git a/arch/riscv/lib/barebox.lds.S b/arch/riscv/lib/barebox.lds.S
index e71bd89fb144..f6e6b29b412f 100644
--- a/arch/riscv/lib/barebox.lds.S
+++ b/arch/riscv/lib/barebox.lds.S
@@ -58,8 +58,6 @@ SECTIONS
 	. = ALIGN(4);
 	.data : { *(.data*) }
 
-	.barebox_imd : { BAREBOX_IMD }
-
 	/DISCARD/ : { *(.rela.plt*) }
 	.rela.dyn : {
 		__rel_dyn_start = .;
-- 
2.47.3
next             reply	other threads:[~2025-11-03  7:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-03  7:42 Ahmad Fatoum [this message]
2025-11-03  8:41 ` 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=20251103074241.299831-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