gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > No crt0

#29435 - sgeos - Sat Nov 20, 2004 12:35 am

How do I take a bundle of c and s files and combine them into an executable unit without linking in crt0?

-Brendan

#29436 - sajiimori - Sat Nov 20, 2004 12:42 am

If you want it to be usable, you'll have to duplicate at least part of the functionality of crt0. Read it to decide which parts you want and which you don't. Then use ld directly instead of the gcc/g++ front end and you can specify exactly what you want to link in.