From ebdcba70020fbcfc0e4db7d4bb1d4cdcf7969c8e Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Fri, 14 Jul 2017 08:55:51 -0700 Subject: [PATCH] x86: linker.ld: support __kernel sections Signed-off-by: Andrew Boie --- include/arch/x86/linker.ld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/arch/x86/linker.ld b/include/arch/x86/linker.ld index 896f1400b16..cb934127be1 100644 --- a/include/arch/x86/linker.ld +++ b/include/arch/x86/linker.ld @@ -178,6 +178,8 @@ SECTIONS KERNEL_INPUT_SECTION(.bss) KERNEL_INPUT_SECTION(".bss.*") KERNEL_INPUT_SECTION(COMMON) + *(".kernel_bss.*") + /* * As memory is cleared in words only, it is simpler to ensure the BSS * section ends on a 4 byte boundary. This wastes a maximum of 3 bytes. @@ -196,6 +198,7 @@ SECTIONS */ KERNEL_INPUT_SECTION(.noinit) KERNEL_INPUT_SECTION(".noinit.*") + *(".kernel_noinit.*") /* All stacks go in kernel's noinit, regardless of where they * were defined.