This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[RFC] ARM Floating point defaults
- From: Paul Brook <paul at nowt dot org>
- To: gcc at gcc dot gnu dot org, binutils at sources dot redhat dot com
- Cc: Richard Earnshaw <Richard dot Earnshaw at arm dot com>,Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 3 Aug 2004 19:03:22 +0100
- Subject: [RFC] ARM Floating point defaults
It appears that gcc and gas use different defaults for hardware floating point
flags. On linux and netbsd targets the default is overridden, so everything
is ok.
On other targets[1] gcc defaults to soft-float fpa, but gas defaults to
whatever hardware is supported by the CPU.
This causes a couple of problems:
- Objects are marked as hard-float by default.
- Code compiled for armv5 chips are marked as VFP format float.
Both of these cause linker errors when objects compiled with default options
(eg. libc) are mixed with objects compiled with explicitly specified options.
Would it be acceptable to change the gas defaults to match those used by gcc?
At the same time, add a linker option that allows linking of objects with
incompatible flags. This would allow the user to override the checks when
linking old objects with incorrect flags.
Paul
[1] The only other gcc target which doesn't default to soft-float is
arm-semi-aof, which doesn't isn't supported by gas.