Give kernel image a header.
Kernel image now has a header with version, magic number, and a pointer to its actual entrypoint. Entry point is now _start in boot.s, and we now generate versions.s in the build tree for the version macros.
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
ENTRY(kernel_main)
|
||||
ENTRY(_start)
|
||||
SECTIONS
|
||||
{
|
||||
. = 0x100000;
|
||||
|
||||
.header : {
|
||||
header = .;
|
||||
KEEP(*(.header))
|
||||
}
|
||||
|
||||
.text : {
|
||||
code = .;
|
||||
*(.text.entry)
|
||||
*(.text)
|
||||
}
|
||||
|
||||
@@ -24,5 +28,5 @@ SECTIONS
|
||||
*(.note.*)
|
||||
}
|
||||
|
||||
end = ALIGN(4096);
|
||||
kernel_end = ALIGN(4096);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user