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.

> And it may not be fair to ask here, but why do cross compiling
> hints/hacks for the ARM often cite making changes to
> `gcc-4.5.0/gcc/config/arm/t-linux` so that `crti.asm` file in the same
> directory *does* get built and linked?

I don't know.  I would not expect the simple crti.asm shipped with gcc
to suffice for glibc, but perhaps it does.

> I guess I'm seeking an answer to the paradox: which comes first,
> glibc or gcc?  I'm assuming that gcc does, but in a static form
> that allows it to compile glibc, then use that to do a 'proper' gcc
> build.

Yes, precisely.

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