From mboxrd@z Thu Jan 1 00:00:00 1970 From: llandre Date: Wed, 30 Aug 2006 09:58:26 +0200 Subject: [U-Boot-Users] simple_strtoul overwrites bd_info field In-Reply-To: <20060829160406.0F4F9353A32@atlas.denx.de> References: <20060829160406.0F4F9353A32@atlas.denx.de> Message-ID: <44F54522.4010608@dave-tech.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de >> I'm experiencing the following problem when building U-Boot with GCC >> 4.0.0 provided by ELDK 4.0 ARM. > > Which board is this? Zefeer > Check the assembler code (single step it under a debugger). This is the offending instruction in simple_strtoul: *endp = (char *)cp; As endp points to one field of the struct bd_info, it gets corrupted. So the problem is about the pointer "e" in function start_armboot that is passed to simple_strtoul. Any idea? -- llandre DAVE Electronics System House - R&D Department web: http://www.dave-tech.it email: r&d2 at dave-tech.it