GCC 4.6 not building crti.o and crtn.o in cross-compiler

Ian Lance Taylor iant@google.com
Fri May 6 18:11:00 GMT 2011


David Paterson <dnpaterson@gmail.com> writes:

> For some reason crti.o and crtn.o aren't being built, and I'm puzzled
> as to why...

> where TARGET = sparc-elf

For most targets crti.o and crtn.o are built by the C library, not by
gcc.  sparc-elf was one of the unusual exceptions.  Support for building
them as part of gcc was removed by this change:
http://gcc.gnu.org/ml/gcc-patches/2010-12/msg01334.html , presumably
as part of "removes some left-overs".

I've CC'ed Eric in case he has anything to add.

Ian



More information about the Gcc-help mailing list