/******************************************************************************
 *
 *                                  cmona1d.link
 *
 *      This is the CMON linker directive file for the A1D.
 ******************************************************************************/

MEMORY {
    RAM_DIAG: 	origin=0x400	 	length=0x3c00
    RAM: 	origin=0x4000     	length=0x3000
    RAM_TXT: 	origin=0x7000	 	length=0xb000
}

SECTIONS {
    .bss_diag INTO(RAM_DIAG) : {
                                diag_ext.o(.bss)
                                diag.o(.bss)
                                icu_diag.o(.bss)
                                sio_diag.o(.bss)
                                ram_diag.o(.bss)
                                cpu_diag.o(.bss)
                                uwire_d.o(.bss)
                                afe_diag.o(.bss)
                                eep_diag.o(.bss)
			}

    .bss  INTO(RAM) : {} 
    .text INTO(RAM_TXT) : {}
    .data INTO(RAM) ROMINTO(RAM_TXT) : {}
    .init INTO(RAM_TXT) : {}
    .text_diag INTO(RAM_TXT) : {
                                diag_ext.o(.text)
                                diag.o(.text)
                                icu_diag.o(.text)
                                sio_diag.o(.text)
                                ram_diag.o(.text)
                                cpu_diag.o(.text)
                                uwire_d.o(.text)
                                afe_diag.o(.text)
                                eep_diag.o(.text)
			}
}

_START_DATA__  = addr(.data);
_END_DATA__ = addr(.data) + sizeof(.data);
_START_BSS__ = addr(.bss);
_END_BSS__     = addr(.bss) + sizeof(.bss);
_START_TXT__   = addr(.text);
_END_TXT__     = addr(.text) + sizeof(.text);

