|
|
|
|
|
by mbeddedartistry
1393 days ago
|
|
It says "usually". It varies! But, in general, the libc implementations I have looked at handle this. This includes Newlib, glibc (they call it start.s), picolibc, musl (crt1), and my own libc. The presence in your binary only means that crt0.o was statically linked (may be an expectation of the loader on your system). If you linked against a static libc, you would also see those symbols as part of the binary. |
|
I'm pretty sure it works that way on windows too, but they call the symbol mainCRTStartup or some such.