Files
jsix_import/src/arch/x86_64/kernel.ld
Justin C. Miller e19c7cee50 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.
2018-03-24 18:34:44 -07:00

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);
}