[PATCH 1/2] ARM: cpu: setupc: relocate BSS in relocate_to_adr()

Sascha Hauer s.hauer at pengutronix.de
Fri Mar 13 04:17:27 PDT 2026


On Thu, 12 Mar 2026 20:20:42 +0100, Ahmad Fatoum wrote:
> When calling relocate_to_adr(), barebox is copied without BSS to a new
> place. The new BSS region is not necessarily zeroed, but setupc()
> following relocate_to_adr() will take care of that.
> 
> With incoming change to make setupc() idempotent, this will become
> problematic as the variable in .data will indicate that the BSS is
> zeroed, while the new BSS region isn't actually.
> 
> [...]

Applied, thanks!

[1/2] ARM: cpu: setupc: relocate BSS in relocate_to_adr()
      https://git.pengutronix.de/cgit/barebox/commit/?id=d443585bcce6 (link may not be stable)
[2/2] fixup! ARM: setup_c: avoid clearing BSS twice
      (no commit info)

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




More information about the barebox mailing list