
Dear Alexey Smishlayev,
On 11/27/2013 02:53 PM, Alexey Smishlayev wrote:
On 2013.11.27. 15:39, Andreas Bießmann wrote:
crt0.S:70 subtracts the GD_SIZE from current stack pointer. The code written seems to miss the Rn according to [1]. Could you please test to change it from to: 'sub sp, sp, #GD_SIZE'?
Yes, thank you! Now it successfully compiles crt0.S. Although, I get another error later on the compilation:
<snip>
/usr/local/arm/gcc-4.2.3-glibc-2.3.3/arm-unknown-linux-gnu/lib/gcc/arm-unknown-linux-gnu/4.2.3 -lgcc -Map u-boot.map -o u-boot /usr/local/arm/gcc-4.2.3-glibc-2.3.3/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-ld: -static and -shared may not be used together make: *** [u-boot] Error 1
Any clues on how to correct this one?
this is a known issue of outdated toolchain, please update to a newer one. That would also fix your other problem then.
Best regards
Andreas Bießmann