From 69d08dcb4580f8e544464bf54432ab07a7f58fc6 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 25 Apr 2020 23:53:19 +0200 Subject: Small cleanup and formatting --- src/kernel/linker.ld | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/kernel/linker.ld') 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 -- cgit v1.2.3