[U-Boot] [PATCH 01/25] SPEAr: Fix ARM relocation support

Stefan Roese sr at denx.de
Wed Mar 7 14:11:09 CET 2012


On Wednesday 07 March 2012 13:03:50 Amit Virdi wrote:
> 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 at st.com>

Acked-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the U-Boot mailing list