This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Set F_VFP_FLOAT for any binary not using FPA instructions


> Hi Richard,
> 
>   Any objections to my applying the following patch ?  It changes the
>   logic for setting the F_VFP_FLOAT flag in arm-elf binaries so that
>   it is set for any binary that has been created without enabling FPA
>   instructions - even binaries that have been assembled with the
>   -mno-fpu switch.  This is the change from the previous behavior
>   where assembling with -mno-fpu would not set the VFP flag.
> 
>   The reason for this change to get around the problem of compiling
>   source files with the gcc switches "-mcpu=xscale -msoft-float".
>   Although the soft-float flag is redundant, specifying it passes the
>   -mno-fpu flag to the assembler, which then marks the binaries as
>   using FPA instructions.  This then prevents the object file from
>   being linked with other arm or xscale binaries, which by default are
>   marked as using VFP instructions.

Hmm, if the default for the xscale configuration of gcc is -msoft-float, 
then shouldn't it always be passing -mno-fpu to the assembler unless 
-mhard-float is specified?

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]