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


On Thu, Feb 17, 2011 at 11:09:41PM +0000, Joseph S. Myers wrote:
> On Fri, 18 Feb 2011, Alan Modra wrote:
> 
> > 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.
> 
> The problem is that those are built by default; it makes no sense to build 
> such multilibs without an appropriate sysroot and SYSROOT_SUFFIX_SPEC and 
> they are not useful without an associated libc.

You asked for a use case.  I very carefully didn't say anything about
the usefulness of those multilibs.  ;-)

My point remains that the crt files ideally should not be marked with
an attribute that indicates they are hard-float only.

-- 
Alan Modra
Australia Development Lab, IBM


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