imd: drop .barebox_imd section from arm/riscv non-PBL lds
Subsystems (2)
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
@@ -69,8 +69,6 @@ SECTIONS CONSTRUCTORS } - .barebox_imd : { BAREBOX_IMD } - . = .; BAREBOX_RELOCATION_TABLE
arch/arm/lib64/barebox.lds.S +0 -2
@@ -46,8 +46,6 @@ SECTIONS .data : { *(.data*) } - .barebox_imd : { BAREBOX_IMD } - BAREBOX_RELOCATION_TABLE _edata = .;
arch/riscv/lib/barebox.lds.S +0 -2
@@ -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
Sascha Hauer
AppliedQuoted 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 thatpbl.lds.Sincludes 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]>