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: Andreas Schwab <schwab at redhat 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 16:20:04 +0100
- Subject: Re: PowerPC32 .gnu.attributes in crt files
- References: <20110217141040.GA7651@bubble.grove.modra.org>
Alan Modra <amodra@gmail.com> writes:
> +# crt1.o, crti.o, crtn.o and similar files are used when building -msoft-float
> +# binaries as well hardware floating point binaries. gcc always emits
> +# a .gnu.attributes section, marking the startup files as hard-float.
> +# This results in linker warnings when building soft-float binaries.
> +# The crt files really are compatible with both hard and soft-float,
> +# and similarly for the other .gnu.attributes.
Then there should be a compiler option to suppress the attribute.
> +postclean-generated += stamp-attr
> +subdir_lib: $(objpfx)stamp-attr
> +$(objpfx)stamp-attr: $(extra-objs:%=$(objpfx)%)
> + for x in $?; do \
> + objcopy -R .gnu.attributes $$x; \
This uses the wrong objcopy when cross compiling.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."