Configure newlib to get crti and crtn copied to the target

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

Configure newlib to get crti and crtn copied to the target

Post 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!
Post Reply