mirror of
https://github.com/0xAX/linux-insides.git
synced 2024-12-22 22:58:08 +00:00
9f269b41df
* 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.