[PATCH 1/2] ARM: cpu: setupc: relocate BSS in relocate_to_adr()
Ahmad Fatoum
a.fatoum at pengutronix.de
Sat Mar 14 00:50:23 PDT 2026
Hello Sascha,
On 3/13/26 12:17, Sascha Hauer wrote:
>
> 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
Please reorder "ARM: cpu: setupc: relocate BSS in relocate_to_adr" before "ARM: setup_c: avoid clearing BSS twice" to keep bisection possible without intermittent breakage.
Thanks,
Ahmad
> (no commit info)
>
> Best regards,
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list