[PATCH] ARM/RISC-V: pbl.lds: drop ALIGN before _text and assert entry at start

Sascha Hauer s.hauer at pengutronix.de
Thu Oct 1 13:22:18 PDT 2026


On Thu, 01 Oct 2026 08:52:47 +0200, Sascha Hauer wrote:
> .image_start and ._text only hold the zero-sized __image_start and
> _text markers, so the location counter is still 0 when it reaches
> the ALIGN(4) in front of ._text. The ALIGN was only meaningful while
> PRE_IMAGE could place data of arbitrary size there. RISC-V copied the
> sequence from ARM.
> 
> The PBL must start with its entry code: it is started from its first
> address, the image size is taken as __image_end, and code copying the
> image uses __image_start and _text interchangeably. Assert that
> instead of silently relying on it.
> 
> [...]

Applied, thanks!

[1/1] ARM/RISC-V: pbl.lds: drop ALIGN before _text and assert entry at start
      https://git.pengutronix.de/cgit/barebox/commit/?id=a2bae64125b0 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list