Move linker.ld

Move to kernel
This commit is contained in:
2025-11-14 14:17:27 -08:00
committed by GitHub
parent 2ab0efdee1
commit d5906d72de

26
kernel/linker.ld Normal file
View File

@@ -0,0 +1,26 @@
ENTRY(kmain)
SECTIONS {
. = 1M;
.text : {
*(.text*)
}
.rodata : { *(.rodata*) }
.data : { *(.data*) }
.bss : {
*(.bss*)
*(COMMON)
}
.stack (NOLOAD) : {
. = ALIGN(4);
. = . + 0x1000;
}
.heap (NOLOAD) : {
. = ALIGN(4);
. = . + 0x10000;
}
}