public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Alexey Smishlayev <alexey@xtech2.lv>
To: u-boot@lists.denx.de
Subject: [U-Boot] Compiling U-Boot
Date: Wed, 27 Nov 2013 15:53:14 +0200	[thread overview]
Message-ID: <5295F94A.1020407@xtech2.lv> (raw)
In-Reply-To: <5295F60D.5030304@gmail.com>

Dear Andreas Bie?mann,

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:

cd /home/alexey/xtech2/u-boot-2013.10 && 
/usr/local/arm/gcc-4.2.3-glibc-2.3.3/arm-unknown-linux-gnu/bin/arm-unknown-linux-gnu-ld 
-pie -T u-boot.lds --gc-sections -Bstatic -Ttext 0x21f00000 
arch/arm/cpu/arm926ejs/start.o --start-group api/libapi.o 
arch/arm/cpu/arm926ejs/at91/libat91.o 
arch/arm/cpu/arm926ejs/libarm926ejs.o arch/arm/lib/libarm.o 
common/libcommon.o disk/libdisk.o drivers/bios_emulator/libatibiosemu.o 
drivers/block/libblock.o drivers/crypto/libcrypto.o drivers/dfu/libdfu.o 
drivers/dma/libdma.o drivers/fpga/libfpga.o drivers/gpio/libgpio.o 
drivers/hwmon/libhwmon.o drivers/i2c/libi2c.o drivers/input/libinput.o 
drivers/misc/libmisc.o drivers/mmc/libmmc.o drivers/mtd/libmtd.o 
drivers/mtd/nand/libnand.o drivers/mtd/onenand/libonenand.o 
drivers/mtd/spi/libspi_flash.o drivers/mtd/ubi/libubi.o 
drivers/net/libnet.o drivers/net/phy/libphy.o drivers/pci/libpci.o 
drivers/pcmcia/libpcmcia.o drivers/power/battery/libbattery.o 
drivers/power/fuel_gauge/libfuel_gauge.o drivers/power/libpower.o 
drivers/power/mfd/libmfd.o drivers/power/pmic/libpmic.o 
drivers/rtc/librtc.o drivers/serial/libserial.o drivers/sound/libsound.o 
drivers/spi/libspi.o drivers/tpm/libtpm.o drivers/twserial/libtws.o 
drivers/usb/eth/libusb_eth.o drivers/usb/gadget/libusb_gadget.o 
drivers/usb/host/libusb_host.o drivers/usb/musb-new/libusb_musb-new.o 
drivers/usb/musb/libusb_musb.o drivers/usb/phy/libusb_phy.o 
drivers/usb/ulpi/libusb_ulpi.o drivers/video/libvideo.o 
drivers/watchdog/libwatchdog.o fs/cbfs/libcbfs.o fs/cramfs/libcramfs.o 
fs/ext4/libext4fs.o fs/fat/libfat.o fs/fdos/libfdos.o 
fs/jffs2/libjffs2.o fs/libfs.o fs/reiserfs/libreiserfs.o 
fs/sandbox/libsandboxfs.o fs/ubifs/libubifs.o fs/yaffs2/libyaffs2.o 
fs/zfs/libzfs.o lib/libfdt/libfdt.o lib/libgeneric.o lib/lzma/liblzma.o 
lib/lzo/liblzo.o lib/rsa/librsa.o lib/zlib/libz.o net/libnet.o 
post/libpost.o test/libtest.o 
board/atmel/at91sam9260ek/libat91sam9260ek.o --end-group 
/home/alexey/xtech2/u-boot-2013.10/arch/arm/lib/eabi_compat.o  -L 
/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?

Best regards
Alexey Smishlayev

  reply	other threads:[~2013-11-27 13:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-27 12:26 [U-Boot] Compiling U-Boot Alexey Smishlayev
2013-11-27 13:39 ` Andreas Bießmann
2013-11-27 13:53   ` Alexey Smishlayev [this message]
2013-11-27 13:59     ` Andreas Bießmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5295F94A.1020407@xtech2.lv \
    --to=alexey@xtech2.lv \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox