[U-Boot] powerpc: FOO uses hard float, BAR uses soft float
Wolfgang Denk
wd at denx.de
Sat Dec 10 00:12:44 CET 2011
Dear Kumar,
In message <4421AD7B-D8AA-455E-B67D-328C3E7427BD at kernel.crashing.org> you wrote:
>
> Look at commit, we dealt with this in the past
>
> commit ce82ff05388b5ddafdf6082ef0776cce72c40b1c
> Author: Yuri Tikhonov <yur at emcraft.com>
> Date: Sat Dec 20 14:54:21 2008 +0300
>
> FPU POST: fix warnings when building with 2.18 binutils
>
> Also:
>
> commit e009cdeb63308f291c54b173484401aab4a3fe54
> Author: Kumar Gala <galak at kernel.crashing.org>
> Date: Tue Jan 25 03:00:08 2011 -0600
>
> powerpc: Fix FPU post related link warnings
Thanks for pointing out. I have to admit that I had completely
forgotten about these.
Hm, unfortunately this appears to have stopped working.
The two objects that are flagged as "Tag_GNU_Power_ABI_FP: Hard float"
are
post/lib_powerpc/fpu/acc1.o
and
post/lib_powerpc/fpu/20010226-1.o
Both corresponding source files have the GNU_FPOST_ATTR macro...
It appears with GCC 4.6.1 the explicit "-mhard-float" command line
option takes precedence over the ``asm(".gnu_attribute 4, 2");'' in
the source file :-(
Is there any way to manually edit the attribute in the object file,
using ld or elfedit or ... ?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
God made machine language; all the rest is the work of man.
More information about the U-Boot
mailing list