Re: Could my understanding of 'crti.o' in a ARM cross compile be verified?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jamie Risk <jamie@xxxxxxxxxxxxxxxx> writes:

>>> But the presence of the `crti.asm` source file
>>> (`gcc-4.5.0/gcc/config/arm/crti.asm`) is misleading me.  Why is
>>> it there? Is it for bare metal targets (sans glibc & Linux)?
>>
>> Right: it's only for the arm-elf target.
>
> Ahh ... that's making some sense.  I'll start with an arm-elf
> target and see where I can get too.
>
> But the question is still begging: why then, when the build is
> configured with `target=arm-linux` the linker looks for the
> `crti.o` file in the `gcc-4.5.0/gcc/` build directory?

It looks in a number of places for each file; that is just one of them.
If glibc is installed using the same --prefix as gcc, then it should
look there as well.  I hope.

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux