This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PowerPC32 .gnu.attributes in crt files
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: libc-alpha at sourceware dot org, "Ryan S. Arnold" <rsa at us dot ibm dot com>
- Date: Thu, 17 Feb 2011 18:00:24 +0000 (UTC)
- Subject: Re: PowerPC32 .gnu.attributes in crt files
- References: <20110217141040.GA7651@bubble.grove.modra.org>
On Fri, 18 Feb 2011, Alan Modra wrote:
> This unfortunately results in crt1.o, crti.o etc. being marked as
> incompatible with soft float; The linker warns when building any
> soft float binary, and because crt1.o is usually the first file
> linked, builds the binary with an incorrect attribute. Up until now,
> I'd fixed my own system by simply stripping the attribute section from
> /usr/lib/*crt*.o, but a system update reminded me that I should really
> fix this upstream.
If you want to build soft-float binaries, you need a sysroot with a
soft-float build of glibc; soft-float is also incompatible with the
hard-float shared libc. Do you really have a use case where you want to
use glibc's crt*.o files but no other static or shared libraries from
glibc?
--
Joseph S. Myers
joseph@codesourcery.com