diff --git a/thousand-line-os/kernel.ld b/thousand-line-os/kernel.ld new file mode 100644 index 0000000..ac36c9d --- /dev/null +++ b/thousand-line-os/kernel.ld @@ -0,0 +1,28 @@ +ENTRY(boot) + +SECTIONS { + . = 0x80200000; + + .text :{ + KEEP(*(.text.boot)); + *(.text .text.*); + } + + .rodata : ALIGN(4) { + *(.rodata .rodata.*); + } + + .data : ALIGN(4) { + *(.data .data.*); + } + + .bss : ALIGN(4) { + __bss = .; + *(.bss .bss.* .sbss .sbss.*); + __bss_end = .; + } + + . = ALIGN(4); + . += 128 * 1024; /* 128KB */ + __stack_top = .; +}