mirror of
https://github.com/cowmonk/cowos.git
synced 2025-10-27 22:43:26 +00:00
25 lines
563 B
Text
25 lines
563 B
Text
ENTRY(_start) /* Entry point symbol */
|
|
|
|
SECTIONS {
|
|
/* Load address in memory: 2MB for kernel */
|
|
. = 2M;
|
|
|
|
/* Multiboot header must be in the first 8KB of the file and 32-bit aligned */
|
|
.text BLOCK(4K) : ALIGN(4K) {
|
|
*(.multiboot)
|
|
*(.text)
|
|
}
|
|
|
|
.rodata BLOCK(4K) : ALIGN(4K) {
|
|
*(.rodata)
|
|
}
|
|
|
|
.data BLOCK(4K) : ALIGN(4K) {
|
|
*(.data)
|
|
}
|
|
|
|
.bss BLOCK(4K) : ALIGN(4K) {
|
|
*(COMMON)
|
|
*(.bss)
|
|
}
|
|
}
|