PowerPC32 .gnu.attributes in crt files
Andreas Schwab
schwab@redhat.com
Thu Feb 17 15:31:00 GMT 2011
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."
More information about the Libc-alpha
mailing list