This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PowerPC32 .gnu.attributes in crt files
On Thu, Feb 17, 2011 at 06:00:24PM +0000, Joseph S. Myers wrote:
> 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?
Yes, soft-float and other multi-libs built for gcc. For instance, we
build a soft-float version of libgcc_s.so. This is linked with
-nodefaultlibs so we just use /usr/lib/crti.o and /usr/lib/crtn.o
from glibc.
Results in nof/libgcc_s.so being marked with
Attribute Section: gnu
File Attributes
Tag_GNU_Power_ABI_FP: Hard float
Tag_GNU_Power_ABI_Vector: Generic
Tag_GNU_Power_ABI_Struct_Return: Memory
and the linker complains
/usr/local/powerpc-linux/bin/ld: Warning: nof/libgcc_s.so.1.tmp uses hard float, /home/alan/build/ppc/gcc-curr/./gcc/nof/crtbeginS.o uses soft float
/usr/local/powerpc-linux/bin/ld: Warning: nof/libgcc_s.so.1.tmp uses hard float, _muldi3_s.o uses soft float
/usr/local/powerpc-linux/bin/ld: Warning: nof/libgcc_s.so.1.tmp uses hard float, _negdi2_s.o uses soft float
and similar warnings for every other file linked into libgcc_s.so
--
Alan Modra
Australia Development Lab, IBM