On Wednesday, October 23, 2013 09:45 AM, Zhenqiang Chen wrote:
On 23 October 2013 09:33, Chris Ruehlchris.ruehl@gtsys.com.hk wrote:
Hi,
may you think I'm on the wrong list, no not :-)
I currently build my u-boot loader using the linaro tool chain 2013.09 and run into a problem with the support for JFFS2 where the linker report VFP usage where u-boot using softfp for build.
compiler options: -ffixed-r9 -msoft-float
Please try option -marm -march=armv4t -mfloat-abi=soft
I think its not a matter of the -m options the u-boot build call them expect the -mfloat-abi=soft
arm-linux-gnueabihf-gcc -g -Os -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -D__KERNEL__ -ffunction-sections -fdata-sections -DCONFIG_SYS_TEXT_BASE=0xa0000800 -DCONFIG_SPL_BUILD -I/opt/cross_build/uboot.d/u-boot-git/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv5te -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage
arm-linux-gnueabihf-ld.bfd: error: /opt/armhf/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/../lib/gcc/arm-linux-gnueabihf/4.8.2/libgcc.a(bpabi.o) uses VFP register arguments, u-boot does not
By default the libraries in arm-linux-gnueabihf toolchain is hard float. It can not be linked with soft-float or soft.
when I use make USE_PRIVATE_LIBGCC=yes
the problem shows up at an undefined reference
fs/jffs2/libjffs2.o: In function `jffs2_1pass_build_lists': /opt/cross_build/uboot.d/u-boot-git/fs/jffs2/jffs2_1pass.c:1441: undefined reference to `__aeabi_uldivmod' arm-linux-gnueabihf-ld.bfd: BFD (crosstool-NG linaro-1.13.1-4.8-2013.09 - Linaro GCC 2013.09) 2.23.2.20130610 Linaro 2013.06 assertion fail /cbuild/slaves/oorts/crosstool-ng/builds/arm-linux-gnueabihf-linux/.build/src/binutils-linaro-2.23.2-2013.06/bfd/elf32-arm.c:7687
may someone have a closer look into it?
thanks Chris
linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain