Page 1 of 1

Configure newlib to get crti and crtn copied to the target

Posted: Thu Jun 05, 2014 1:40 pm
by max
Heyho :)

My toolchain is now nearly complete, the only thing that still bugs me is:
In the GCC configuration, i added crti to the startfilespec, and crtn to the endfilespec. I added a crti.S and a crtn.S to my sysdir in newlib (newlib/libc/sys/ghost) and also added rules to the Makefile.am there, and they are compiled with newlib, but I can't get it to copy them to the target lib directory. Which part of the configuration is responsible for copying for example crt0.o, and how can I adapt it to also copy my crtn.o and crti.o? :)

Thank you!