Could my understanding of 'crti.o' in a ARM cross compile be verified?
Andrew Haley
aph@redhat.com
Wed Jul 28 14:47:00 GMT 2010
On 07/28/2010 03:08 PM, Jamie Risk wrote:
>>> [I assume] that I've somehow configured gcc to avoid
>>> building 'crti.o' in the ./gcc directory, and I need to get the
>>> configure script to want to build this. _Is this true_?
>>
>> No.
>>
>> crti.o comes from glibc, not gcc. You need the glibc appropriate for
>> your target. Building a cross-compiler to a GNU/Linux target is
>> complex. Looking at http://crosstool.org/ may help.
>
> Complex indeed, and I have much reading ahead, thanks for the
> link.
It's a lot easier, if you can get one, to copy the root
filesystem from your target. Then you configure gcc with
--with-sysroot=/path/to/root/fs.
Andrew.
More information about the Gcc-help
mailing list