From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_Bie=DFmann?= Date: Wed, 27 Nov 2013 14:59:47 +0100 Subject: [U-Boot] Compiling U-Boot In-Reply-To: <5295F94A.1020407@xtech2.lv> References: <5295E4FE.3000004@xtech2.lv> <5295F60D.5030304@gmail.com> <5295F94A.1020407@xtech2.lv> Message-ID: <5295FAD3.7050401@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: > /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