[U-Boot-Users] simple_strtoul overwrites bd_info field

llandre r&d2 at dave-tech.it
Wed Aug 30 09:58:26 CEST 2006


>> 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




More information about the U-Boot mailing list