From ca38b976ab31d309f8e96d72692167ac5a0b2916 Mon Sep 17 00:00:00 2001 From: Julien CLEMENT Date: Sat, 4 Dec 2021 00:09:42 +0100 Subject: [PATCH] feat(ld): update linker script to put kernel stack below bss Signed-off-by: Julien CLEMENT --- src/linker.ld | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/linker.ld b/src/linker.ld index deea04f..4300d1e 100644 --- a/src/linker.ld +++ b/src/linker.ld @@ -9,6 +9,16 @@ SECTIONS { *(.multiboot_header) } + .stack : + { + *(.stack) + } + + .bss : + { + *(.bss) + } + .text : { *(.text)