This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: crt1.o/crti.o problems


Michael Ivanov wrote:
Hallo!

I'm building the toolchain for arm (gcc 3.2.2/glibc 2.3.1) and I have a question
about crt1.o, crti.o. gcc has the sources for these files (arm/crti.asm) but for
some reason these are not built and the glibc versions are used instead. Is it
supposed to be so or do I miss something?

Yes, the crti/crtn sources are for the no-opsys embedded arm/strongarm/xscale-elf targets, not for Linux. Please see the 'gcc/config/arm/t-linux' and compare the EXTRA* stuff with the stuff in those 't-*elf' there. And you will see that only 'crtbegin.o' and 'crtend.o' should be built for Linux/ARM...

 The 'C-startups': 'crt1.o', 'crti.o' and 'crtn.o' belong
to the C-library, meanwhile the 'C++-startups': 'crtbegin.o'
and 'crtend.o' belong to GCC. Sometimes the C-library has
not the 'crti.o' and 'crtn.o', maybe not even the 'crt1.o'.
This is the case with Solaris2, so the 'gcc/config/sparc'
and 'gcc/config/i386' has their sources for Solaris2/Sparc
and Solaris2/x86.  The 'mips*-elf' targets seem also now
have sources for 'crti.o' and 'crtn.o'.



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe at sources dot redhat dot com


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