crt files

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

 



Hi,

I am working on a new port (cross compilation). I am wondering about
crt. Binutils are already developped.

I need a crt0.o for the linker. I set some macros this way:

#define STARTFILE_SPEC  "%(crt_binutils)"
#define CRT_BINUTILS_SPECS "crt0.o%s"
#define EXTRA_SPECS                             \
{"crt_binutils", CRT_BINUTILS_SPECS},

Then GCC tells the linker to link crt0.o found in:
$TARGET_GCC_INSTALL/bin/../lib/gcc/target/4.3.3/crt0.o

This crt0.o was compiled with target-gcc manually. I would like GCC to
generate the crt file automatically
during the installation. I read crtstuff.c but I cannot find which
macros in target.h to set so
crt0.o is built, and how to control what it contains.

 Please, could you advise me ?

Regards.

Florent

[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