]> git.baikalelectronics.ru Git - uboot.git/commit
Makefile: ensure DTB doesn't overflow into initial stack
authorStephen Warren <swarren@nvidia.com>
Tue, 9 Jan 2018 19:52:14 +0000 (12:52 -0700)
committerTom Warren <twarren@nvidia.com>
Fri, 12 Jan 2018 17:12:32 +0000 (10:12 -0700)
commit427d00c64417be5b8cefc2866a4190dac6d39e18
tree3743fad9eb406ab0f2a4cc4d1ee2526fa1a74501
parent830ba7f52cfceda4dd888fb62009759ebb05c276
Makefile: ensure DTB doesn't overflow into initial stack

With CONFIG_SYS_INIT_SP_BSS_OFFSET enabled, the initial (pre-relocation)
stack is placed some distance after bss_start. The control DTB is appended
to the U-Boot binary at bss_start. If the DTB is too large, or the SP BSS
offset too small, then the initial stack could corrupt the DTB. Enhance
the Makefile to check whether this is likely to occur.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
Makefile