How statically linked programs run on Linux (2012)
eli.thegreenplace.net
How statically linked programs run on Linux (2012)
1–9 of 9 posts
Re: How statically linked programs run on Linux (2012)
#2Re: How statically linked programs run on Linux (2012)
#3Re: How statically linked programs run on Linux (2012)
#4Re: How statically linked programs run on Linux (2012)
#5Does Linux just map the executable into memory, and then let it load memory fault by memory fault? Or is the entire executable, or some large portion therof, loaded at startup?
Re: How statically linked programs run on Linux (2012)
#6And I'm sure I'm not the only frequenter of HN that loves this stuff.
Re: How statically linked programs run on Linux (2012)
#7As a sidenote, I find stack diagrams more intuitive (for typical descending stacks) when the low address is drawn at the top. This way it looks like a real-world stack and if you need to represent some data or executable code in the same address space it will appear in natural order, from top to bottom.
[0] http://articles.manugarg.com/aboutelfauxiliaryvectors.html
Re: How statically linked programs run on Linux (2012)
#8The diagram showing the stack on program entry misses the auxiliary vector[0]. As a sidenote, I find stack diagrams more intuitive (for typical descending stacks) when the low address is drawn at the top. This way it looks like a real-world stack and if you need to represent some data or executable code in the same address space it will appear in natural order, from top to bottom. [0] http://articles.manugarg.com/abo…
Re: How statically linked programs run on Linux (2012)
#9Does Linux just map the executable into memory, and then let it load memory fault by memory fault? Or is the entire executable, or some large portion therof, loaded at startup?