This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I got gcc-3.4.0-arm-softfloat.patch from Dan Kegel and apply it to building toolchain for xscale. But I encountered a problem. In the patch you suggest %{msoft-float:-mfpu=softfpa} %{!msoft-float:-mfpu=softvfp} instead of others. But when I got the toolchain as your method, I found it can compile source file with -c option regardless of -msoft-float option, such as 'arm-linux-gcc -msoft-float -c test.c' or 'arm-linux-gcc -c test.c'. But if I use 'arm-linux-gcc test.c', I must specify the option -msoft-float and got softfpa format binary, or it will report: /usr/local/arm-linux/arm-linux/bin/ld: ERROR: /tmp/xxx.o uses VFP instructions, whereas a.out does not File format not recognized: failed to merge target specific data of file /tmp/xxx.o collect2: ld returned 1 exit status The binutils-2.14.90 has been patched with modifying #define FPU_DEFAULT FPU_ARCH_FPA to #define FPU_DEFAULT FPU_ARCH_VFP, and it was configured as: ../bintuils-2.14.90/configure --target=arm-linux --prefix=/usr/local/arm-linux --disable-nls --with-sysroot=/usr/local/arm-linux/arm-linux. It seems that ld(generated from binutils) does not support both VFP and FPA. Is it right? Would you give me some hint? Thanks! Best Regards, Bridge Wu ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |