StupidOS/kernel/linker.ld

31 lines
309 B
Plaintext
Raw Normal View History

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
}
kernel_size = kernel_end - kernel_start;