After learning the ELF format in Linux, we want to use Loader to load the ELF kernel file, beacuse we will compile the OS kernel using gcc.
Loader has loaded the kernel in the memory and jmp into the protected mode, and setup paging.
We have loaded the ELF kernel file in the memory, but have to relocate the kernel into the memory and jump to the program accessed point of the kernel. It means that the task of Loader ends.
Expand the kernel. Switch stack and GDT, and I have collated the files for easy reading.