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 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

which leads to:
error: f1.o uses VFP register arguments, f.u does not
failed to merge target specific data of file f1.o

f1.c can be only a sample code:
===================================
int myfunc(int i) { return i+1;}
int main()
{
  return myfunc(1);
}
===================================


Thanks,

Christophe.