diff options
Diffstat (limited to 'src/link.ld')
-rw-r--r-- | src/link.ld | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/link.ld b/src/link.ld new file mode 100644 index 0000000..d5aa082 --- /dev/null +++ b/src/link.ld @@ -0,0 +1,28 @@ +ENTRY(boot) + +SECTIONS +{ + . = 1M; + + .text BLOCK(4K) : ALIGN(4K) + { + text_start = .; + *(.text) + *(.rodata) + } + + .data BLOCK(4K) : ALIGN(4K) + { + data_start = .; + *(.data) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + bss_start = .; + *(.COMMON) + *(.bss) + } + + kernel_end = .; +} |