
-heap  0xF0000   // 756 kB
/* -stack 0x4000    //  16 kB */
-stack 0x20000    //  128 kB
--cinit_compression=off
--args 0x1000
--diag_suppress=10068 // "no matching section"
-e _c_int00_secure
/* -e _c_int00 */

/* #define DDR0_ALLOCATED_START  0x80000000 */
/* #define C7X_ALLOCATED_START DDR0_ALLOCATED_START + 0x19800000 */
#define C7X_ALLOCATED_START 0x80000000

#define C7X_RESOURCE_TABLE_BASE (C7X_ALLOCATED_START + 0x00100000)
#define C7X_BOOT_BASE           (C7X_ALLOCATED_START + 0x00200000)
#define C7X_VECTOR_BASE         (C7X_ALLOCATED_START + 0x00400000)
#define C7X_DDR_SPACE_BASE      (C7X_ALLOCATED_START + 0x00410000)
#define C7X_DDR_NEAR_BASE       (C7X_ALLOCATED_START + 0x01F00000)
#define C7X_DDR_FAR_BASE        (C7X_ALLOCATED_START + 0x01F80000)
#define C7X_DDR_EXT_BASE        (C7X_ALLOCATED_START + 0x02000000)

MEMORY
{
  L2SRAM_CINIT (RWX)  : org = 0x7E000000, len = 0x000100 //for 256byte init
  L2SRAM (RWX)        : org = 0x7E000100, len = 0x0fff00 //for 1MBytes  EL2
  L2SRAMAUX   (RWX): org = 0x7F000000, len = 0x040000   // for 256 KBytes AM62A
  L1DSRAM  (RWX): org = 0x64E00000, len = 0x004000   // 16kB, for J7

  EXTMEM_STATIC   (RWX): org = 0x80000000, len = 0x200000
  EXTMEM_DATACN   (RWX): org = 0x80200000, len = 0x200000
 /* rem EXTMEM   (RWX): org = 0x80400000, len = 0x200000 */
  EXTMEM   (RWX): org = 0x80400000, len = 0x08000000
  /* rem EXTMEM   (RWX): org = 0x80410000, len = 0x1F0000*/		/* 0702 実行エラー対策 */ 
  /* rem EXTMEM   (RWX): org = 0x80600000, len = 0x400000*/
  /* rem EXTMEMPAGE (RWX): org = 0x80A00000, len = 0x200000 */

  /* rem EXTMEM_FXBUF (RWX):   org = 0x80600000,    len = 0x08000000	*/		/* 128MB DDR */
}

SECTIONS
{
    boot:
    {
      boot.*<boot.oe71>(.text)
    } load > EXTMEM ALIGN(0x200000)
	.vecs		>			EXTMEM ALIGN(0x80000)
	.secure_vecs	>		EXTMEM ALIGN(0x200000)
	.text:_c_int00 > 		EXTMEM ALIGN(0x200000)
	.text:_c_int00_secure > EXTMEM ALIGN(0x200000)
	.text     	>			EXTMEM  	  ALIGN(0x2000)
	.bss 		>			EXTMEM_DATACN
    RUN_START(__BSS_START)
    RUN_END(__BSS_END)  
	.cio      	>			L2SRAM
	.const    	>			L2SRAM
	.stack    	>			EXTMEM ALIGN(0x2000)
	.data       >			EXTMEM
	.switch     >			EXTMEM
	.sysmem		>			EXTMEM
	.far		>			EXTMEM
	.args       >			EXTMEM
	.ppinfo		>			EXTMEM
	.ppdata		>			EXTMEM
	.pinit		>			L2SRAM
	.cinit     	>			EXTMEM
	.binit		>			EXTMEM
	.init_array >			EXTMEM
	.neardata	>			EXTMEM
	.fardata	>			EXTMEM
	.rodata		>			EXTMEM
	.c6xabi.exidx	>		EXTMEM
	.c6xabi.extab	>		EXTMEM
	.vectors	>			EXTMEM
	.version_data	>		EXTMEM
	.table		>			EXTMEM
	/* rem .sdram		>			EXTMEM_FXBUF */
	.sdram		>			EXTMEM
	.src_table		>		EXTMEM

    GROUP:              >  EXTMEM
    {
        .data.Mmu_tableArray          : type=NOINIT
        .data.Mmu_tableArraySlot      : type=NOINIT
        .data.Mmu_level1Table         : type=NOINIT
        .data.gMmu_tableArray_NS       : type=NOINIT
        .data.Mmu_tableArraySlot_NS   : type=NOINIT
        .data.Mmu_level1Table_NS      : type=NOINIT
    }

    .benchmark_buffer:     > EXTMEM ALIGN (32)

}
