[U-Boot-Users] latest-git, mpc8540 targets: ld: u-boot: section `.bootpg' can't be allocated in segment 1

Grant Likely grant.likely at secretlab.ca
Wed Sep 19 16:39:19 CEST 2007


On 9/18/07, Clemens Koller <clemens.koller at anagramm.de> wrote:
> Hi There!
>
> I just checked out the latest u-boot git HEAD and did a
>
> $ make PM854_config
> or a
> $ make TQM8540_config
> followed by a
> $ make all
> using binutils-2.18, gcc-4.2.1, kernel 2.6.21 on a native mpc8540 environment.
>
> but linking fails close to the end:
>
> make[1]: Leaving directory `/share/home/clemens/u-boot/u-boot-20070918/libfdt'
> UNDEF_SYM=`objdump -x lib_generic/libgeneric.a board/tqm85xx/libtqm85xx.a cpu/mpc85xx/libmpc85xx.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/bios_emulator/libatibiosemu.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/net/libnet.a drivers/qe/qe.a drivers/serial/libserial.a drivers/sk98lin/libsk98lin.a post/libpost.a post/drivers/libpostdrivers.a post/lib_ppc/libpostppc.a post/lib_ppc/fpu/libpostppcfpu.a common/libcommon.a libfdt/libfdt.a |sed  -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
>                  cd /share/home/clemens/u-boot/u-boot-20070918 && ld -Bstatic -T /share/home/clemens/u-boot/u-boot-20070918/board/tqm85xx/u-boot.lds -Ttext 0xfffc0000  -n $UNDEF_SYM cpu/mpc85xx/start.o cpu/mpc85xx/resetvec.o \
>                          --start-group lib_generic/libgeneric.a board/tqm85xx/libtqm85xx.a cpu/mpc85xx/libmpc85xx.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/bios_emulator/libatibiosemu.a drivers/nand/libnand.a drivers/nand_legacy/libnand_legacy.a drivers/net/libnet.a drivers/qe/qe.a drivers/serial/libserial.a drivers/sk98lin/libsk98lin.a post/libpost.a post/drivers/libpostdrivers.a post/lib_ppc/libpostppc.a post/lib_ppc/fpu/libpostppcfpu.a common/libcommon.a libfdt/libfdt.a --end-group -L /usr/lib/gcc/powerpc-unknown-linux-gnu/4.2.1 -lgcc \
>                          -Map u-boot.map -o u-boot
> ld: u-boot: section `.bootpg' can't be allocated in segment 1
> ld: final link failed: Bad value
> make: *** [u-boot] Error 1


Hmmm, I don't see that behavior, but I have found another bug:
/bin/bash and /bin/dash (default /bin/sh shell in ubuntu) handle
embedded nulls differently.  I've written a patch to fix this which
I'm posting to the list now.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely at secretlab.ca
(403) 399-0195




More information about the U-Boot mailing list