]> git.dujemihanovic.xyz Git - u-boot.git/commit
SPEAr: Fix ARM relocation support
authorAmit Virdi <amit.virdi@st.com>
Mon, 7 May 2012 07:36:39 +0000 (13:06 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:39 +0000 (14:07 +0200)
commit5cca72f8b342c8a65eaebda22647572394d98535
tree0b85350b987f7d503d2d2f9e735e583461d87c20
parent9264077635f4053a646d90bd8ebd5287c602d18d
SPEAr: Fix ARM relocation support

While the u-boot code is running from the flash, it is essential that no access
is made to the bss segment. This is due to the fact that .rel.dyn and .bss areas
overlap and former contains information used in relocation. In SPEAr, this was
not taken into consideration. As a result, while the relocation wasn't complete,
dram_init populated an uninitialized global variable resulting in corruption of
.rel.dyn area, which resulted in u-boot crash.

This commit fixes this problem by removing code that accesses bss segment

Signed-off-by: Amit Virdi <amit.virdi@st.com>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
board/spear/common/spr_misc.c