mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-01-01 21:15:20 -08:00
39 lines
552 B
Plaintext
39 lines
552 B
Plaintext
ENTRY(kmain)
|
|
|
|
PHDRS {
|
|
text PT_LOAD FLAGS(5); /* Read + Execute */
|
|
rodata PT_LOAD FLAGS(4); /* Read only */
|
|
data PT_LOAD FLAGS(6); /* Read + Write */
|
|
}
|
|
|
|
SECTIONS {
|
|
. = 1M;
|
|
|
|
.text : {
|
|
*(.text*)
|
|
} :text
|
|
|
|
.rodata : {
|
|
*(.rodata*)
|
|
} :rodata
|
|
|
|
.data : {
|
|
*(.data*)
|
|
} :data
|
|
|
|
.bss : {
|
|
*(.bss*)
|
|
*(COMMON)
|
|
} :data
|
|
|
|
.stack (NOLOAD) : {
|
|
. = ALIGN(4);
|
|
. = . + 0x1000;
|
|
}
|
|
|
|
.heap (NOLOAD) : {
|
|
. = ALIGN(4);
|
|
. = . + 0x10000;
|
|
}
|
|
}
|