From d52c3d119dbbbf2a9573e7698a878cf74afdd08c Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 31 Aug 2018 14:31:48 +0200 Subject: doxy and alignment --- linker.ld | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'linker.ld') diff --git a/linker.ld b/linker.ld index 1352163..c5fa5f8 100644 --- a/linker.ld +++ b/linker.ld @@ -3,14 +3,16 @@ ENTRY(_start) SECTIONS { . = 0x7000; + kernel_start = .; + + /* smp code at 0x7000*/ .text BLOCK(4K) : ALIGN(4K) { *(.smp) } . = 1M; - kernel_start = .; - + /* _start code as 0x10000 and rest of code*/ .text BLOCK(4K) : ALIGN(4K) { *(.multiboot) @@ -32,9 +34,9 @@ SECTIONS /* Read-write data (uninitialized) and stack */ .bss BLOCK(4K) : ALIGN(4K) { + *(.bootstrap_stack) *(COMMON) *(.bss) - *(.bootstrap_stack) } kernel_end = .; -- cgit v1.2.3