/************************************************************************/
/* 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 = 512k
    ram (wx) :   ORIGIN = 0x1FFF0000, LENGTH = 64k
/*    rom (rx)  :   ORIGIN = 0xFFFA0000, LENGTH = 384k-128	*/
/*    vec (r)  :   ORIGIN = 0xFFFFFF80, LENGTH = 128		*/

}

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;
}
/*	.text program code; 			*/
/*	.rodata read-only data; 		*/
/*	.data read-write initialized data; 	*/
/*	.bss read-write zero initialized data. 	*/
/*	COMMON global zero initialized data.	*/
