/************************************************************************/
/* CQBBEL GNU CC Common Control Software / (C) Toshio MURAI 2011, 2012	*/
/*      This is Free Software;   You can redistribute this software     */
/*      and/or modify it under the terms of the GNU General Public      */
/*      License version 3, or (at your option) any later version.       */
/************************************************************************/

MEMORY {
    rom (rx)  :   ORIGIN = 0x00000000, LENGTH = 384k	/*check	*/
    ram (w) :   ORIGIN = 0x40000000, LENGTH = 64k	/*check	*/
}

SECTIONS
{
	.text : {
		vect.o(.rodata)
		*(.text*)
		*(.rodata*)
		etext = .;
	}

	.data : AT (etext) {
		sdata = .;
		*(.data)
		edata = .;
	}

	.bss : {
		sbss = .;
		*(.bss)
		*(COMMON)
		ebss = .;
	}

	interruptStack =  ORIGIN(ram) + LENGTH(ram) - 0x404;

	systemStack =  ORIGIN(ram) + LENGTH(ram) - 0x4;
}

