mirror of
https://github.com/cowmonk/cowos.git
synced 2025-10-28 15:03:27 +00:00
Branch sync and push, reformated and made the OS look more "official"
This commit is contained in:
parent
13389f9617
commit
59e39d9842
9 changed files with 270 additions and 0 deletions
25
kernel/arch/i386/linker.ld
Normal file
25
kernel/arch/i386/linker.ld
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue