linux linux

Linux x86 程序启动-怎么执行到main方法 - Linux x86 Program Start Up or-How the heck do we get to main [翻译][注解版] 有更新!

  |   0 评论   |   1,291 浏览

译文

原标题: Linux x86 Program Start Up or - How the heck do we get to main()? by Patrick Horgan

摘要:

整篇文章大意就是要给我们介绍在main函数执行前要做什么.或者说main方法整体在程序的运行流程中.处于哪一个环节.
然后主体的串流程是在函数: __libc_start_main 因为这个是gcc, 编译的有可能是cpp文件. 另外即使是c语言.
也有可能的一些全局的 construct函数和 deconstruct 函数.
你也可以在知乎阅读此文: https://zhuanlan.zhihu.com/p/521205296