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 Thu, Apr 22, 2010 at 03:16:57PM +0200, Christophe LYON wrote:
> Hello,
> 
> I am trying to use the GNU linker (through Code Sourcery 2009q3's
> arm-non-eabi-gcc driver) to link object files produced with ARM's
> RVCT.
> 
> I compile with --wchar32 --library_interface=aeabi_clib --cpu=cortex-a9
> and I link with -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp
> -Tgeneric-hosted.ld.
> 
> The linker complains on each object file because it "uses VFP
> register arguments" while the generated executable "does not".
> 
> I have tried -mfpu-vfp, but it changes nothing.

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

-- 
Daniel Jacobowitz
CodeSourcery