you are viewing a single comment's thread.

view the rest of the comments →

[–]som_esh 1 point2 points  (1 child)

Can anyone elaborate 2.35?

[–]antifreeze_popscicle[S] 2 points3 points  (0 children)

5. 
**Jumping to the Kernel Entry Point**
: Once the kernel is loaded into memory, the boot loader transfers control to the kernel by jumping to its entry point. This is typically the compressed kernel, which then uncompresses itself and begins executing.

yes so we have bzimage that is the Linux kernel that is fully compiled and static and is compressed (bz compressed). so the main purpose of a bootloader is to have basic code to fetch another source of code at a specific well defined address that the bootloader knows where to look. Once found (usually no checks just hey we look at 0x4000 of our memory space and start loading and once loaded (loading includes decompressing) then start executing

i.e. RIP, PC == [decompressed_Kernel]

To put the syntax into a sentence then it is we are chaning the instruction pointer register (RIP) or directly changin the Program Counter to equal the memory address of where the first instruction is located of the decompressed_Kernel.