[U-Boot-Users] Taishan linker problem.

k b
2008-02-21T19:45:25Z

Hi,
I'm using the taishan board. and have adding some test cmd on top of it and here's what i see when i compile.

> make distclean && make clean && make taishan_config && make

UNDEF_SYM=`/opt/montavista/pro/devkit/ppc/440/bin/ppc_440-objdump -x lib_generic/libgeneric.a board/amcc/taishan/libtaishan.a cpu/ppc4xx/libppc4xx.a lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
cd /export/home/kxb/perforce/taishan-bootldr/common/devel/micro/ppc440/bootloader/u-boot-1.2.0/main/devel/src && /opt/montavista/pro/devkit/ppc/440/bin/ppc_440-ld -Bstatic -T /export/home/kxb/perforce/taishan-bootldr/common/devel/micro/ppc440/bootloader/u-boot-1.2.0/main/devel/src/board/amcc/taishan/u-boot.lds -Ttext 0xFFFC0000 -n $UNDEF_SYM cpu/ppc4xx/start.o cpu/ppc4xx/resetvec.o \
--start-group lib_generic/libgeneric.a board/amcc/taishan/libtaishan.a cpu/ppc4xx/libppc4xx.a lib_ppc/libppc.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /opt/montavista/pro/devkit/ppc/440/bin/../lib/gcc-lib/powerpc-hardhat-linux/3.3.1 -lgcc \
-Map u-boot.map -o u-boot
/opt/montavista/pro/devkit/ppc/440/bin/ppc_440-ld: u-boot: Not enough room for program headers (allocated 2, need 3)
/opt/montavista/pro/devkit/ppc/440/bin/ppc_440-ld: final link failed: Bad value

I'm using uboot 1.2.0. And looked around to see what this error meant looks like it has to somethign with SIZEOF_HEADERS in the u-boot.lds.
I'm out of ideas here so any inputs would help.

thanks

Kunal

_________________________________________________________________
Shed those extra pounds with MSN and The Biggest Loser!