Compilation error - MPC8536DS
Hi,
I'm hitting the error below when compiling the latest git u-boot for MPC8536DS target.
I'm using toolchain from Freescale BSP for this board. ld version is 2.18.50.20080215,
gcc version is 4.3.2. Any ideas how to fix this ?
UNDEF_SYM=`powerpc-none-linux-gnuspe-objdump -x
board/freescale/mpc8536ds/libmpc8536ds.a lib_generic/libgeneric.a
lib_generic/lzma/liblzma.a lib_generic/lzo/liblzo.a
board/freescale/common/libfreescale.a cpu/mpc85xx/libmpc85xx.a
lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.afs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.afs/yaffs2/libyaffs2.a fs/ubifs/libubifs.a net/libnet.a disk/libdisk.a drivers/bios_emulator/libatibiosemu.a drivers/block/libblock.adrivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.adrivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.adrivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.adrivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.adrivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.adrivers/net/libnet.a drivers/net/phy/libphy.adrivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.adrivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.adrivers/qe/qe.a cpu/mpc8xxx/ddr/libddr.a drivers/rtc/librtc.adrivers/serial/libserial.a drivers/twserial/libtws.adrivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.adrivers/usb/musb/libusb_musb.a drivers/video/libvideo.adrivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a
api/libapi.a post/libpost.a | sed -n -e
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; cd /home/felix/u-boot-git
&& powerpc-none-linux-gnuspe-ld -Bstatic -T /home/felix/u-boot-git/board/freescale/mpc8536ds/u-boot.lds -n -Ttext0xeff80000 $UNDEF_SYM cpu/mpc85xx/start.o cpu/mpc85xx/resetvec.o
--start-group lib_generic/libgeneric.a lib_generic/lzma/liblzma.a
lib_generic/lzo/liblzo.a board/freescale/common/libfreescale.a
cpu/mpc85xx/libmpc85xx.a lib_ppc/libppc.a fs/cramfs/libcramfs.afs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.afs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/yaffs2/libyaffs2.afs/ubifs/libubifs.a net/libnet.a disk/libdisk.adrivers/bios_emulator/libatibiosemu.a drivers/block/libblock.adrivers/dma/libdma.a drivers/fpga/libfpga.a drivers/gpio/libgpio.adrivers/hwmon/libhwmon.a drivers/i2c/libi2c.a drivers/input/libinput.adrivers/misc/libmisc.a drivers/mmc/libmmc.a drivers/mtd/libmtd.adrivers/mtd/nand/libnand.a drivers/mtd/onenand/libonenand.adrivers/mtd/ubi/libubi.a drivers/mtd/spi/libspi_flash.adrivers/net/libnet.a drivers/net/phy/libphy.adrivers/net/sk98lin/libsk98lin.a drivers/pci/libpci.adrivers/pcmcia/libpcmcia.a drivers/power/libpower.a drivers/spi/libspi.adrivers/qe/qe.a cpu/mpc8xxx/ddr/libddr.a drivers/rtc/librtc.adrivers/serial/libserial.a drivers/twserial/libtws.adrivers/usb/gadget/libusb_gadget.a drivers/usb/host/libusb_host.adrivers/usb/musb/libusb_musb.a drivers/video/libvideo.adrivers/watchdog/libwatchdog.a common/libcommon.a libfdt/libfdt.a
api/libapi.a post/libpost.a board/freescale/mpc8536ds/libmpc8536ds.a
--end-group -L /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-dp-2/powerpc-none-linux-gnuspe/lib/gcc/powerpc-none-linux-gnuspe/4.3.2 -lgcc -Map u-boot.map -o u-boot
powerpc-none-linux-gnuspe-ld: section .bootpg [effff000 -> effff1cb]
overlaps section .u_boot_cmd [efffeabc -> effff20b]
powerpc-none-linux-gnuspe-ld: u-boot: section .bootpg lma 0xeffff000
overlaps previous sections
Thanks.
Felix.
Dear Felix Radensky,
Quoted 6 lines · In message <[email protected]> you wrote:
I'm hitting the error below when compiling the latest git u-boot for MPC8536DS target.
I'm using toolchain from Freescale BSP for this board. ld version is 2.18.50.20080215,
gcc version is 4.3.2. Any ideas how to fix this ?
Seems recent versions of GCC have changed their behaviour (once again) when (not) using load/store multiple instructions, which causes them to generate bigger (but allegedly more correct) code.
The code builds fine with gcc-4.2.2.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Pardon me for breathing, which I never do anyway so I don't know why
I bother to say it, oh God, I'm so depressed. Here's another of those
self-satisfied doors. Life! Don't talk to me about life."
- Marvin the Paranoid AndroidHi, Wolfgang
Quoted 11 lines · Wolfgang Denk
Dear Felix Radensky,
Quoted 6 lines · In message <[email protected]> you wrote:
I'm hitting the error below when compiling the latest git u-boot for MPC8536DS target.
I'm using toolchain from Freescale BSP for this board. ld version is 2.18.50.20080215,
gcc version is 4.3.2. Any ideas how to fix this ?
Quoted 6 lines
Seems recent versions of GCC have changed their behaviour (once again) when (not) using load/store multiple instructions, which causes them to generate bigger (but allegedly more correct) code.
The code builds fine with gcc-4.2.2.
Thanks, I'll switch to ELDK 4.2 then.
Felix.
Quoted 5 lines
Best regards,
Wolfgang Denk