
Hello all,
in our development enviroment we use some PowerMacs running Debian to compile U-Boot/Linux kernel. With the latest compilers I have some issues with u-boot: 1) gcc 3.3.4 - Linking of u-boot image failes: ... ld -Bstatic -T /opt/eldk-3.1.1/ppc_6xx/root/u-boot-1.1.3/board/eXalion/u-boot.lds -Ttext 0xFFF00000 -n $UNDEF_SYM cpu/mpc824x/start.o \ --start-group lib_generic/libgeneric.a board/eXalion/libeXalion.a cpu/mpc824x/libmpc824x.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/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /usr/lib/gcc-lib/powerpc-linux/3.3.4 -lgcc \ -Map u-boot.map -o u-boot make: *** [u-boot] Error 139
If I remove "-Map u-boot.map" from the Makefile the linking is successful.
# gcc -v Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.4/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc --disable-multilib powerpc-linux Thread model: posix gcc version 3.3.4 (Debian)
2) gcc 3.3.6 - Linking OK(?), but image cannot run (cmd relocation failes):
Assuming that only __cmd* should be between __u_boot_cmd_start and __u_boot_cmd_end my System.map looks suspicious: ... fff31f94 A __u_boot_cmd_start fff31f94 A _edata fff31f94 d failed fff31f98 D z_errmsg fff31fb8 D op_table fff32020 D stdio_names fff3202c d av_ fff32434 d reserved_list fff324b8 D init_sequence fff324e8 d pci_eXalion_config_table fff32600 D hose fff326d4 D __u_boot_cmd_autoscr ... [snip] fff32cbc D __u_boot_cmd_exit fff32cd8 D __u_boot_cmd_help fff32cf4 D __u_boot_cmd_question_mark fff32d10 A __start___ex_table fff32d10 A __stop___ex_table fff32d10 A __u_boot_cmd_end fff33000 A __bss_start ... # gcc -v lunochod:/opt/eldk-3.1.1/ppc_6xx/root# gcc -v Reading specs from /usr/lib/gcc-lib/powerpc-linux-gnu/3.3.6/specs Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc --disable-multilib powerpc-linux-gnu Thread model: posix gcc version 3.3.6 (Debian 1:3.3.6-7)
Comments on that?
Regards, Torsten
P.S. When using the compiler from ELDK (3.3.3 )in native mode, the image compiles and runs OK.