Skip to contentSkip to conversation

imd: drop .barebox_imd section from arm/riscv non-PBL lds

PATCH Applied Ahmad Fatoum 2 participants 2 messages Nov 3, 2025

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

PATCH 1/1 imd: drop .barebox_imd section from arm/riscv non-PBL lds

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.

---
 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(-)
arch/arm/lib32/barebox.lds.S +0 -2
index b304561a9859..877788eb8083 100644
@@ -69,8 +69,6 @@ SECTIONS
 		CONSTRUCTORS
 	}
 
-	.barebox_imd : { BAREBOX_IMD }
-
 	. = .;
 
 	BAREBOX_RELOCATION_TABLE
arch/arm/lib64/barebox.lds.S +0 -2
index e6406b04d135..44f23fe275dc 100644
@@ -46,8 +46,6 @@ SECTIONS
 
 	.data : { *(.data*) }
 
-	.barebox_imd : { BAREBOX_IMD }
-
 	BAREBOX_RELOCATION_TABLE
 
 	_edata = .;
arch/riscv/lib/barebox.lds.S +0 -2
index e71bd89fb144..f6e6b29b412f 100644
@@ -58,8 +58,6 @@ SECTIONS
 	. = ALIGN(4);
 	.data : { *(.data*) }
 
-	.barebox_imd : { BAREBOX_IMD }
-
 	/DISCARD/ : { *(.rela.plt*) }
 	.rela.dyn : {
 		__rel_dyn_start = .;
Signature · 1 line
2.47.3
Applied
#1 lore raw
Quoted 8 lines · Ahmad Fatoum

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.

[...]

Applied, thanks!

[1/1] imd: drop .barebox_imd section from arm/riscv non-PBL lds
https://git.pengutronix.de/cgit/barebox/commit/?id=84663877b5de (link may not be stable)

Best regards,

Signature · 1 line
Sascha Hauer <[email protected]>