[PATCH 3/3] ARM: zImage: make sure appended DTB doesn't get overwritten by kernel .bss

Tony Lindgren tony at atomide.com
Mon Jun 13 20:47:57 EST 2011


* Nicolas Pitre <nicolas.pitre at linaro.org> [110611 23:03]:
> The appended DTB gets relocated with the decompressor code to get out
> of the way of the decompressed kernel.  However the .bss section may
> be larger than the relocated code and data, therefore overwriting the
> DTB.  Let's make sure the relocation takes care of moving zImage so
> no conflict with .bss occurs.
> 
> Thanks to Tony Lindgren <tony at atomide.com> for figuring out this issue.
> 
> While at it, let's clean up the code a bit so that the wont_overwrite
> symbol is used while determining if a conflict exists, making the above
> change more precise as well as eliminating some ARM/THUMB alternates.
> 
> Signed-off-by: Nicolas Pitre <nicolas.pitre at linaro.org>

Great, this simplifies things:

Acked-by: Tony Lindgren <tony at atomide.com>


More information about the devicetree-discuss mailing list