;/****************************************************************************************
;* @file map.txt
;*
;* @brief This file is the CEVA X linker base script. It is copied at run time just in order
;*        to complete the object file list in between crt0 and crtn objects.
;*
;*        The rest of the file lines are copied identically and the resulting.lnk file is
;*        used as linker script for the COFFLNK CEVA Linker program.
;*
;* Copyright (C) RivieraWaves 2011-2019
;*
;****************************************************************************************
;*/
;-----------------------------------------------------------------------------------------
; ORDERED LIST OF OBJECT FILES - completed at linker run
;-----------------------------------------------------------------------------------------
objects:

;-----------------------------------------------------------------------------------------
; ORDERED LIST OF ALL LIBRARY OBJECTS
;-----------------------------------------------------------------------------------------
libraries:
    %CEVAXTOOLS%/libs/%CPU%/libc.lib
    %CEVAXTOOLS%/libs/%CPU%/cevaxlib.lib
    %CEVAXTOOLS%/libs/%CPU%/libcio.lib

;-----------------------------------------------------------------------------------------
; CLASSES
;-----------------------------------------------------------------------------------------
classes:
    ;;8 mem blocks of 32K each
    SHRAM [D:60000000, 0x80000] external
    LAMAC [D:61100000, 0x100000] external
    MIB   [D:68300800, 0x1000] external

;-----------------------------------------------------------------------------------------
; CODE CLASS
;-----------------------------------------------------------------------------------------
code:
segment 0
    inttbl
    call_saved_store_restore_sect
    .text
    ctor_sect
    crtn_ctor_sect
    dtor_sect
    crtn_dtor_sect

data:
segment 0
    __STACK_SECT   lo size 0x800
    .data   lo align 0x4
    .bss    lo align 0x4
    const_data  lo align 0x4
    __MALLOC_SECT   lo noload

SHRAM:
    SHRAMIPC lo noload
    SHRAM noload
    __sshram at lo symbol
    __eshram at next symbol
    __trace_start at next symbol
    __trace_end at hi symbol

LAMAC:
    LARAMMAC lo noload

MIB:
    MIB lo noload
