Comment 6 for bug 1304267

Revision history for this message
changyp (changyp6) wrote : Re: [Bug 1304267] Re: Linaro arm linux gnueabihf gcc always add Tag_FP_arch: VFPv3-D16 when building .S file with -mfloat-abi=soft

Yes,link fail.
The error would be xxx uses VFP register parameters,but xxx.o does not.
2014-4-9 上午11:55于 "Zhenqiang Chen" <email address hidden>写道:

> "-mfpu=vfpv3-d16" is our default option. If you add "-v" when compiling
> the .S file, you can find the final options.
>
> BTW:
> What's the impact of "Tag_FP_arch: VFPv3-D16"? Link fail?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1304267
>
> Title:
> Linaro arm linux gnueabihf gcc always add Tag_FP_arch: VFPv3-D16 when
> building .S file with -mfloat-abi=soft
>
> Status in Linaro GCC:
> New
>
> Bug description:
> I have a ASM file with extension .S
> After I build this file with option
> "-marm -march=armv4t -mfloat-abi=soft -c xxx.S -o xxx.o"
> I checked xxx.o with command "arm-linux-gnueabihf-readelf -A xxx.o"
>
> And the output is
> Attribute Section: aeabi
> File Attributes
> Tag_CPU_name: "4t"
> Tag_CPU_arch: v4T
> Tag_ARM_ISA_use: Yes
> Tag_THUMB_ISA_use: Thumb-1
> Tag_FP_arch: VFPv3-D16
>
> I noticed tag " Tag_FP_arch: VFPv3-D16", this tag prevents this xxx.o
> from linking with other .o files.
>
> However, when building .c or .cpp files, the generated .o files don't
> have " Tag_FP_arch: VFPv3-D16"
>
> It seems that AS doen't respect option "-mfloat-abi=soft" and always
> add "Tag_FP_arch: VFPv3-D16" to the genrated .o files
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/gcc-linaro/+bug/1304267/+subscriptions
>