I am trying to understand how Linux launches a program. I read somewhere that some function in glibc calls the main function. Profiling with callgrind and looking at the call-graphs in Kcachegrind, I see below main which calls main. But I don’t understand this, a function can’t be named such. So my question is which function in the glibc actually starts the main function.
I am trying to understand how Linux launches a program. I read somewhere that
Share
Following valgrind’s own help you’ll find this explanation for the option –show-below-main:
As such, below main is not the function which calls main itself, but __libc_start_main.