With a program like
int main()
{
return 0;
}
- and you statically link, will some library on your system be linked into the final binary.
- and you dynamically link, will a library be loaded when it's run?
In essence, is a library always required for even the simplest programs, if so why? I ask because I thought the canonical entry point for anything that wants to be executed is actually _start (which I thought was in a library, namely glibc). Maybe I don't understand what _start really does with regard to setting things up, so any pointers there would be helpful too.