[U-Boot-Users] libgcc pickup....
richard at uclinux.net
richard at uclinux.net
Fri Feb 4 00:20:23 CET 2005
> In message <r02010400-1037-A42C1278762611D9B21600039387ACB6@[10.0.1.1]> you wrote:
> > Evening...
>
> Monring... :-)
>
> > Does someone has an idea why on OSX systems compiling u-boot
>
> I don't even have an idea what OSX systems are.
Those tiny little shiny and overpriced boxes from Apple? (o;
>
> > picks up host's libgcc.a in the end?
>
> I think I just checked in a patch for this problem:
>
> * Removed '--no-warn-mismatch' option from Makefile. This option
> makes 'ld' to overlook binary objects compatibility.
>
> * Moved $(PLATFORM_LIBS) from the library group (--start-group ...
> --end-group) outside of the group. This will make 'ld' to do
> _multiple_ search in the library group when resolving symbol
> references and do only a _single_ seach in libgcc.a after the group
> search.
Hmm..Makefile in CVS is 3 weeks old as per now....
But with your changes suggested I still get the same:
UNDEF_SYM=`bfin-elf-objdump -x lib_generic/libgeneric.a board/stamp/libstamp.a
cpu/bf533/libbf533.a lib_blackfin/libblackfin.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/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`;\
bfin-elf-ld -Bstatic -T /Users/klingler/develop/blackfin/u-boot/board/stamp/u-boot.lds
-Ttext 0x07FC0000 $UNDEF_SYM cpu/bf533/start.o cpu/bf533/start1.o cpu/bf533/interrupt.o \
--start-group lib_generic/libgeneric.a board/stamp/libstamp.a
cpu/bf533/libbf533.a lib_blackfin/libblackfin.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/sk98lin/libsk98lin.a
post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group \
-L /usr/local/blackfin/lib/gcc/bfin-elf/3.4.1 -lgcc -Map u-boot.map -o u-boot
/usr/lib/libgcc.a: could not read symbols: Archive has no index; run ranlib to add one
make: *** [u-boot] Error 1
greets from \.fi
rick
More information about the U-Boot
mailing list