From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Holler Date: Thu, 28 Oct 2010 11:03:48 +0200 Subject: [U-Boot] Most ARM CPU's have buggy clear_bss? In-Reply-To: References: Message-ID: <4CC93C74.6050309@ahsoftware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, Am 27.10.2010 09:26, schrieb Darius Augulis: > the code for clearing bss section for most ARM cores looks like this > or very similar: ... [some code from start.S] Currently I'm analyzing the same problem (on a kirkwood based hw). It turns out not to be a problem of clear_bss, but a problem of the relocation code. I'm having a problem using gcc 4.3.4 or gcc 4.5.1 along with binutils 2.20.1 and it seems that some stuff is not relocated. It looks like the BSS before relocation is used (e.g. for nand_chip in drivers/mtd/nand.c), but the BSS after relocation might be cleared (in start.S). I assume it's because of some fixups start.S doesn't know about. But I don't know anything about those fixups, and have to read. So I still have no solution. Just as a pointer. Regards, Alexander