diff options
author | Marvin Borner | 2020-04-25 23:53:19 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-25 23:53:19 +0200 |
commit | 69d08dcb4580f8e544464bf54432ab07a7f58fc6 (patch) | |
tree | 878d35b5d3e3fac8f1c8e2a043519658d440f350 /src/kernel/linker.ld | |
parent | f2175ab40a977d15526e7ebc3ad327e3ef825069 (diff) |
Small cleanup and formatting
Diffstat (limited to 'src/kernel/linker.ld')
-rw-r--r-- | src/kernel/linker.ld | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/kernel/linker.ld b/src/kernel/linker.ld index ff04c17..eda4b85 100644 --- a/src/kernel/linker.ld +++ b/src/kernel/linker.ld @@ -1,28 +1,34 @@ ENTRY(_start) -SECTIONS { +SECTIONS +{ . = 1M; - .text BLOCK(4K) : ALIGN(4K) { + .text BLOCK(4K) : ALIGN(4K) + { *(.multiboot) *(.start_section) *(.text) } - .rodata BLOCK(4K) : ALIGN(4K) { + .rodata BLOCK(4K) : ALIGN(4K) + { *(.rodata) } - .data BLOCK(4K) : ALIGN(4K) { + .data BLOCK(4K) : ALIGN(4K) + { *(.data) } - .bss BLOCK(4K) : ALIGN(4K) { - *(COMMON) + .bss BLOCK(4K) : ALIGN(4K) + { + *(.COMMON) *(.bss) } - .end_section BLOCK(4K) : ALIGN(4K) { + .end_section BLOCK(4K) : ALIGN(4K) + { *(.end_section) } }
\ No newline at end of file |