1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 22:58:08 +00:00
linux-insides/Misc
diekmann 9f269b41df Improved picture of stack layout
* 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:
  039ac7c03c/start.asm (L61)
2017-08-11 12:17:23 +02:00
..
contribute.md Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
how_kernel_compiled.md Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
linkers.md Make all Github links reference a specific commit 2017-07-30 15:56:26 -04:00
program_startup.md Improved picture of stack layout 2017-08-11 12:17:23 +02:00
README.md fix a small spell problem 2015-08-17 16:41:29 +08:00

Misc

This chapter contains parts which are not directly related to the Linux kernel source code and implementation of different subsystems.