mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-11-18 14:08:09 +00:00
391030ed94
* Added dots around envp and argv since those are arrays of pointers.
While argc and NULL are just 8B, argv and envp are of variable size,
usually more than 8B. The dots visualize this.
* In the first image, moved rsp to point to argc. This is the initial
stack and register layout at the beginning of _start. Only after libc
popped the top of the stack into rsi, rsp will point to beginning of
argv. (*)
(*)
I verified this by writing my own _start implementation:
|
||
---|---|---|
.. | ||
contribute.md | ||
how_kernel_compiled.md | ||
linkers.md | ||
program_startup.md | ||
README.md |
Misc
This chapter contains parts which are not directly related to the Linux kernel source code and implementation of different subsystems.