x86: linker.ld: support __kernel sections

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-07-14 08:55:51 -07:00 committed by Andrew Boie
parent 7ce3a79d80
commit ebdcba7002

View File

@ -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.