Re: [arm-gnu] Mixing code from RVCT / VFP attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Mixing code from RVCT / VFP attributes



On 23.04.2010 17:56, Daniel Jacobowitz wrote:
On Fri, Apr 23, 2010 at 05:47:41PM +0200, Christophe LYON wrote:
On 23.04.2010 15:11, Daniel Jacobowitz wrote:
On Fri, Apr 23, 2010 at 10:49:40AM +0200, Christophe LYON wrote:

You need either --fpu=VFPv3+SoftVFP or -mfloat-abi=hard.


I still get the same error.

In that case, you'll have to be more specific (complete command
lines).


Well, the object files are compiled with:

armcc --wchar32 --library_interface=aeabi_clib -g --cpu=cortex-a9 -c
f1.c -o f1.o

(armcc is 4.0 build 650 if it matters)

and the link command is:
arm-2009q3-68-arm-none-eabi/bin/arm-none-eabi-gcc f1.o -o f.u
-Tgeneric-hosted.ld -mcpu=cortex-a9 -mfpu=vfp -mfloat-abi=hard
--fpu=VFPv3+SoftVFP

Well, first of all, --fpu is the RealView option.  Sorry, I thought
that was obvious.

Well... as gcc did not complain I thought it was a new option I didn't know ;-) For the record, the actual RealView option is --fpu=SoftVFP+VFPv3 (in the other order, it gives an error)


Also, Lite Edition does not -mfloat-abi=hard libraries.  That's the
source of your immediate error.

Well, the link seems to succeed (it produces an executable with no warning/error)

Thanks for your help.

Christophe.