; LOAD region (copied in RAM by external processor):
;   - start address = 0x00000000 (ram address from processor view)
;   - maximum size = 65536 (changed to 100000)
;LOAD_RAM 0x00000000 100000

LOAD_RAM 0x00000000 0x20000
{
    ; EXEC region containing only code and readonly data (in RAM)
    ; - start address = 0x00000000
    ; - no maximum size specified
    EXEC_RAM_TEXT 0x00000000
    {
        boot_vectors.o(+ENTRY, +FIRST)
        *(+RO)
    }


    ; Region containing only initialized global variables (in RAM)
    ; - start address = +0 (follows immediately previous one)
    ; - no maximum size specified
    RAM_DATA +0
    {
        *(+RW)
    }

    ; Region containing only uninitialized global variables (in RAM)
    ; - start address = +0 (follows immediately previous one)
    ; - no maximum size specified
    RAM_BSS +0
    {
        *(+ZI)
    }

    ; Region stack (in RAM)
    ; - start address = RAM total - other stacks (this is the upperbound address)
    ; - size = 0x10 (- means that start address is actually upperbound address)
    RAM_STACK_UNUSED 0x00040000-0x3F0-0x10-0x3F0 EMPTY -0x10
    {
    }

    ; Region stack (in RAM)
    ; - start address = RAM total - other stacks (this is the upperbound address)
    ; - size = 0x3F0 (- means that start address is actually upperbound address)
    RAM_STACK_SVC 0x00040000-0x3F0-0x10 EMPTY -0x3F0
    {
    }

    ; Region stack (in RAM)
    ; - start address = RAM total - other stacks (this is the upperbound address)
    ; - size = 0x10 (- means that start address is actually upperbound address)
    RAM_STACK_IRQ 0x00040000-0x3F0 EMPTY -0x10
    {
    }

    ; Region stack (in RAM)
    ; - start address = RAM total (this is the upperbound address)
    ; - size = 0x3F0 (- means that start address is actually upperbound address)
    RAM_STACK_FIQ 0x00040000 EMPTY -0x3F0
    {
    }

    ; Region containing only uninitialized global variables (in SHARED RAM)
    ; - start address = 0x10000000
    ; - maximum size is 0x20000 = 128Kb
    SHAREDRAM_BSS 0x10000000 0x20000
    {
        ipc_shared.o(+ZI)
        hal_desc.o(+ZI)
        txl_buffer_shared.o(+ZI)
    }

    ; Region containing MAC HW MIB
    ; - start address = 0x13000800
    ; - size is 0x400
    MACHW_MIB 0x13000800 0x400
    {
        hal_desc.o(machw_mib_section)
    }
}

