xilinx: common: Do not save fdt_blob to bss section
authorMichal Simek <michal.simek@xilinx.com>
Fri, 4 Sep 2020 14:21:47 +0000 (16:21 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 23 Sep 2020 08:31:41 +0000 (10:31 +0200)
commite2572b55440fefa109dc2301228e2d6cc1cca229
treeb0b21efaf106b3d15f6eefdb5676d3285a020f98
parent6cb402f38e363b36721d9014ba27ed873ec563f2
xilinx: common: Do not save fdt_blob to bss section

For SPL flow without specifying address for DT loading DTB is automatically
appended behind U-Boot code. Specifically _end symbol is used. Just behind
it there is place for bss section.
It means if early code is using static variable and there is a write to
this variable DTB file is corrupted if variable is located between DTB
start and end.
In this particular case offset of this variable from bss section start is
very small (0x40) that's why DT is currupted which breaks this boot flow.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
board/xilinx/common/board.c