[U-Boot-Users] erro occure when compiling mips dbau1000
Leif Lindholm
leif.lindholm at i3micro.com
Thu Aug 19 10:01:26 CEST 2004
On Wed, 2004-08-18 at 16:52, 陈国林 wrote:
> hello, every one.
Hi
> i want to port u-boot to a mips R4X00 based board, so firstly i try to compile the dbau1000 as an example, but when linking, error occure as the following:
>
> make[1]: Leaving directory `/root/u-boot/common'
> UNDEF_SYM=`mipsel-linux-objdump -x lib_generic/libgeneric.a board/dbau1x00/libdbau1x00.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.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`;\
> mipsel-linux-ld -Bstatic -T /root/u-boot/board/dbau1x00/u-boot.lds -Ttext 0xbfc00000 $UNDEF_SYM cpu/mips/start.o \
> --start-group lib_generic/libgeneric.a board/dbau1x00/libdbau1x00.a cpu/mips/libmips.a lib_mips/libmips.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --no-warn-mismatch -L /usr/tools/lib/gcc-lib/mipsel-linux/2.96 -lgcc --end-group \
> -Map u-boot.map -o u-boot
> cpu/mips/start.o:/root/u-boot/cpu/mips/start.S:275: undefined reference to `_GLOBAL_OFFSET_TABLE_'
> make: *** [u-boot] Error 1
>
> could anybody give some hints or advices?
What versions are your gcc/binutils?
I think I remember seeing this problem some months ago when playing
around with different versions of both.
In the end I decided to go with binutils 2.13 (neither 2.14 or 2.15.*
worked for me) and gcc 3.2.3.
regards
/
Leif
More information about the U-Boot
mailing list