diff options
author | Marvin Borner | 2020-06-17 18:31:46 +0200 |
---|---|---|
committer | Marvin Borner | 2020-06-17 18:31:46 +0200 |
commit | eed77bd2970a00d1394ed027ceca5b646e4671ce (patch) | |
tree | c44643d98aed2b6818f2b33417c0dea9c5853094 /src/link.ld | |
parent | 49dfa1f4021026bf7c4d77817959c8aa24067016 (diff) |
Started rewrite
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 = .; +} |