This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC32 .gnu.attributes in crt files


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]