From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 7 Mar 2012 14:11:09 +0100 Subject: [U-Boot] [PATCH 01/25] SPEAr: Fix ARM relocation support In-Reply-To: <1331121854-20494-2-git-send-email-amit.virdi@st.com> References: <1331121854-20494-1-git-send-email-amit.virdi@st.com> <1331121854-20494-2-git-send-email-amit.virdi@st.com> Message-ID: <201203071411.09970.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Acked-by: Stefan Roese 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