|
|
|
|
|
by bogomipz
3518 days ago
|
|
Thanks for the response. When you say "how the kernel loads a program into memory" I assume you are referring to ld-linux.so.2? Is that correct? I imagine then that ld-linux.so.2 calls __start in crt0.o and crt0.o jumps to main(). Is this correct? |
|
maps the executable to memory, and if an elf interpreter (/lib/ld-linux.so) is specified (which it normally is) also the elf interpreter.
It then jumps to the entry point of the raw binary or of the elf interpreter.