/*
 * Do not modify this file; it is automatically generated from the template
 * linkcmd.xdt in the ti.targets.elf package and will be overwritten.
 */

/*
 * put '"'s around paths because, without this, the linker
 * considers '-' as minus operator, not a file name character.
 */


-l"C:\Project\openmp_helloworld\Debug\configPkg\package\cfg\omp_config_pe66.oe66"
-l"C:\ti\openmp_dsp_k2g_2_06_00_00\packages\ti\runtime\ompbios\lib\ti_runtime_ompbios_debug_e66.ae66"
-l"C:\ti\ipc_3_46_00_02\packages\ti\sdo\ipc\lib\ipc\instrumented\ipc.ae66"
-l"C:\ti\ipc_3_46_00_02\packages\ti\sdo\utils\lib\utils\instrumented\utils.ae66"
-l"C:\Project\openmp_helloworld\src\sysbios\sysbios.ae66"
-l"C:\ti\openmp_dsp_k2g_2_06_00_00\packages\ti\runtime\openmp\lib\ti_runtime_openmp_am57x_debug_e66.ae66"
-l"C:\ti\pdk_am57xx_1_0_7\packages\ti\csl\lib\am572x\c66\release\ti.csl.ae66"
-l"C:\ti\openmp_dsp_k2g_2_06_00_00\packages\ti\runtime\argsmain\lib\ti_runtime_argsmain_debug_e66.ae66"
-l"C:\ti\bios_6_46_05_55\packages\ti\targets\rts6000\lib\ti.targets.rts6000.ae66"
-l"C:\ti\bios_6_46_05_55\packages\ti\targets\rts6000\lib\boot.ae66"

--retain="*(xdc.meta)"


--args 0x0
-heap  0x800000
-stack 0x8000

MEMORY
{
    L2SRAM (RWX) : org = 0x800000, len = 0x28000
    DDR3 (RWX) : org = 0x80000000, len = 0x1000000
    DDR3_NC (RWX) : org = 0x81000000, len = 0x1000000
}

/*
 * Linker command file contributions from all loaded packages:
 */

/* Content from xdc.services.global (null): */

/* Content from xdc (null): */

/* Content from xdc.corevers (null): */

/* Content from xdc.shelf (null): */

/* Content from xdc.services.spec (null): */

/* Content from xdc.services.intern.xsr (null): */

/* Content from xdc.services.intern.gen (null): */

/* Content from xdc.services.intern.cmd (null): */

/* Content from xdc.bld (null): */

/* Content from ti.targets (null): */

/* Content from ti.targets.elf (null): */

/* Content from xdc.rov (null): */

/* Content from xdc.runtime (null): */

/* Content from ti.targets.rts6000 (null): */

/* Content from ti.runtime.rts6000 (null): */

/* Content from ti.runtime.argsmain (null): */

/* Content from ti.csl (null): */

/* Content from ti.runtime.openmp (ti/runtime/openmp/linkcmd.xdt): */




SECTIONS
{
    /* 
     *  The .far & .fardata sections of the RTSC genenerated 'C' file (appname)
     *  and the RTS libraries (*rts*.lib) consist of global variables that must
     *  be local to each core.  These sections are therefore placed in
     *  memory local to each core.
     */
    .localfar :
    {
        "*rts*.lib" (.far)
        "*rts*.lib" (.fardata)
        "omp_config_pe66.oe66"
    } > L2SRAM


    /*
     * Place the .TI.tls section to avoid a linker defect related to
     * default placement. This section is not used because the runtime
     * dynamically allocates TLS.
     */
    .TI.tls         >   DDR3

    /* tls_init must be placed in a region that has not been mapped via MPAX
     * since it is initialized by the loader
     */
    .TI.tls_init    >   DDR3
}

SECTIONS
{
    .tomp_gvMem:       load= L2SRAM, fill = 0x0

    .tomp_svNcMem:     load= DDR3_NC, type = NOLOAD, fill = 0x0

    .tomp_svMemSlow:   load= DDR3
}

/* Content from ti.sysbios.interfaces (null): */

/* Content from ti.sysbios.family (null): */

/* Content from xdc.runtime.knl (null): */

/* Content from ti.sdo.ipc.interfaces (null): */

/* Content from xdc.services.getset (null): */

/* Content from ti.sdo.ipc.family (null): */

/* Content from ti.sysbios.family.c62 (null): */

/* Content from ti.catalog.c6000 (null): */

/* Content from ti.catalog (null): */

/* Content from ti.catalog.peripherals.hdvicp2 (null): */

/* Content from xdc.platform (null): */

/* Content from xdc.cfg (null): */

/* Content from ti.platforms.generic (null): */

/* Content from ti.runtime.openmp.platforms.am57x (null): */

/* Content from ti.sysbios.family.c64p (ti/sysbios/family/c64p/linkcmd.xdt): */

/* Content from ti.sysbios.family.c66 (ti/sysbios/family/c66/linkcmd.xdt): */
ti_sysbios_family_c66_Cache_l1dSize = 32768;
ti_sysbios_family_c66_Cache_l1pSize = 32768;
ti_sysbios_family_c66_Cache_l2Size = 131072;

/* Content from ti.sysbios.knl (null): */

/* Content from ti.sysbios.timers.dmtimer (null): */

/* Content from ti.sysbios (null): */

/* Content from ti.sysbios.rts (ti/sysbios/rts/linkcmd.xdt): */

/* Content from ti.sysbios.rts.ti (ti/sysbios/rts/ti/linkcmd.xdt): */

/* Content from ti.sysbios.hal (null): */

/* Content from ti.sysbios.gates (null): */

/* Content from ti.sdo.utils (null): */

/* Content from ti.sysbios.syncs (null): */

/* Content from ti.sysbios.xdcruntime (null): */

/* Content from ti.sysbios.heaps (null): */

/* Content from ti.sysbios.family.shared.vayu (null): */

/* Content from ti.sysbios.utils (null): */

/* Content from ti.sdo.ipc (ti/sdo/ipc/linkcmd.xdt): */

SECTIONS
{

    ti_sdo_ipc_init: load > DDR3_NC, type = NOINIT
}

/* Content from ti.sdo.ipc.heaps (null): */

/* Content from ti.sdo.ipc.family.vayu (null): */

/* Content from ti.sdo.ipc.notifyDrivers (null): */

/* Content from ti.sdo.ipc.transports (null): */

/* Content from ti.sdo.ipc.nsremote (null): */

/* Content from ti.sdo.ipc.gates (null): */

/* Content from ti.runtime.ompbios (null): */

/* Content from configPkg (null): */

/* Content from ti.ipc.remoteproc (ti/ipc/remoteproc/linkcmd.xdt): */



/* Content from xdc.services.io (null): */


/*
 * symbolic aliases for static instance objects
 */
xdc_runtime_Startup__EXECFXN__C = 1;
xdc_runtime_Startup__RESETFXN__C = 1;

SECTIONS
{
    .text: load >> DDR3
    .ti.decompress: load > DDR3
    .stack: load > L2SRAM
    GROUP: load > DDR3
    {
        .bss:
        .neardata:
        .rodata:
    }
    .cinit: load > DDR3
    .pinit: load >> DDR3_NC
    .init_array: load > DDR3_NC
    .const: load >> DDR3
    .data: load >> DDR3
    .fardata: load >> DDR3
    .switch: load >> DDR3
    .sysmem: load > DDR3
    .far: load >> DDR3
    .args: load > L2SRAM align = 0x4, fill = 0 {_argsize = 0x0; }
    .cio: load >> L2SRAM
    .ti.handler_table: load > DDR3_NC
    .c6xabi.exidx: load > DDR3_NC
    .c6xabi.extab: load >> DDR3_NC
    .vecs: load > DDR3
    xdc.meta: load > DDR3, type = COPY

}
