Skip to content

Commit

Permalink
x86: linker.ld: support __kernel sections
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information
Andrew Boie authored and andrewboie committed Jul 15, 2017
1 parent 7ce3a79 commit ebdcba7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/arch/x86/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit ebdcba7

Please sign in to comment.