2023-01-15 19:25:25 +00:00
|
|
|
OUTPUT_ARCH(i386)
|
|
|
|
ENTRY(entry)
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
. = 1M;
|
2023-01-20 13:17:11 +00:00
|
|
|
kernel_start = .;
|
2023-01-15 19:25:25 +00:00
|
|
|
|
|
|
|
.text : ALIGN(4) {
|
|
|
|
KEEP(*(.multiboot))
|
|
|
|
*(.text)
|
|
|
|
}
|
|
|
|
|
|
|
|
.rodata : ALIGN(4) {
|
|
|
|
*(.rodata)
|
|
|
|
}
|
|
|
|
|
|
|
|
.data : ALIGN(4) {
|
|
|
|
*(.data)
|
|
|
|
}
|
|
|
|
|
|
|
|
.bss : ALIGN(4) {
|
|
|
|
*(COMMON)
|
|
|
|
*(.bss)
|
|
|
|
}
|
2023-01-20 13:17:11 +00:00
|
|
|
|
|
|
|
kernel_end = .;
|
2023-01-15 19:25:25 +00:00
|
|
|
}
|
2023-01-24 14:57:14 +00:00
|
|
|
|
|
|
|
kernel_size = kernel_end - kernel_start;
|