/*******************************************************************************
 * This is the linker script for the ALMOS-MKH TSAR kernel.
 * It describes the memory layout for the "kernel.elf" binary file.
 ******************************************************************************/

/* Define the kernel code base address */
kernel_base = 0x4000;

/*
 * Set the entry point of the boot-loader (e_entry field in the "boot.elf"
 * file header)
 */

ENTRY(kernel_init)

/*
 * Describe how to group the sections
 */
SECTIONS
{
	. = kernel_base;
	seg_kcode :
	{
		*(.text)
		*(.rodata*)
	}

	. = ALIGN(0x1000);

	seg_kdata :
	{
		*(.kinfo)
		*(.kidle)
		*(.kdata*)
		*(.data*)
	}
}
