mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-11-16 22:35:26 -08:00
Move linker.ld
Move to kernel
This commit is contained in:
26
kernel/linker.ld
Normal file
26
kernel/linker.ld
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user