Monday, April 11, 2005

How main() is executed on Linux

Was looking into ldd, which turns out to be a script that runs /lib/ld-linux.so.2. Question comes up how is an ELF binary started. That is answered on here. What that link doesn't cover is how ld.so is run ? Is it started as step in the ELF loading or is it code that is inserted in each binary. The former is most likely but I haven't found anything that explictly states that.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?