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.
33 lines
317 B
Plaintext
Executable File
33 lines
317 B
Plaintext
Executable File
ENTRY(_start)
|
|
SECTIONS
|
|
{
|
|
. = 0x100000;
|
|
|
|
.header : {
|
|
header = .;
|
|
KEEP(*(.header))
|
|
}
|
|
|
|
.text : {
|
|
code = .;
|
|
*(.text)
|
|
}
|
|
|
|
.data ALIGN(0x1000) : {
|
|
data = .;
|
|
*(.data)
|
|
*(.rodata)
|
|
}
|
|
|
|
.bss ALIGN(0x1000) : {
|
|
bss = .;
|
|
*(.bss)
|
|
}
|
|
|
|
.note ALIGN(0x1000) : {
|
|
*(.note.*)
|
|
}
|
|
|
|
kernel_end = ALIGN(4096);
|
|
}
|