1/*---------------------------------------------------------------------------*
2  Project:  Horizon
3  File:     CTR.Ro.MPCore.ldscript.template
4
5  Copyright (C)2011 Nintendo Co., Ltd.  All rights reserved.
6
7  These coded instructions, statements, and computer programs contain
8  proprietary information of Nintendo of America Inc. and/or Nintendo
9  Company Ltd., and are protected by Federal copyright law.  They may
10  not be disclosed to third parties or copied or duplicated in any form,
11  in whole or in part, without the prior written consent of Nintendo.
12
13  $Rev: 37323 $
14 *---------------------------------------------------------------------------*/
15//
16// Scatter Loading Description File Templete
17//
18
19#define CRO_HEADER_SIZE 0x180
20
21#define SECTION_SPACE_SIZE  0x10000000
22
23#define SPACE_BEGIN			0
24#define TEXT_SECTION_ADDR   (SPACE_BEGIN + CRO_HEADER_SIZE)
25#define RO_SECTION_ADDR     (SPACE_BEGIN + SECTION_SPACE_SIZE)
26#define RW_SECTION_ADDR     (RO_SECTION_ADDR   + SECTION_SPACE_SIZE)
27#define MODULE_INFO_ADDR    (RW_SECTION_ADDR + SECTION_SPACE_SIZE)
28
29TEXT_SECTION    TEXT_SECTION_ADDR   RELOC
30{
31    CODE +0
32    {
33        * (+RO-CODE)
34    }
35    CODE_INIT_ARRAY +0
36    {
37        * (.init_array)
38    }
39    RO +0 ALIGN 0x1000
40    {
41        * (+RO-DATA)
42    }
43    RO_STATIC_INIT  +0
44    {
45        * (.static_init)
46    }
47    RO_ET +0
48    {
49        * (.ARM.exidx)
50        * (.ARM.extab)
51    }
52}
53
54RW_SECTION      RW_SECTION_ADDR     RELOC
55{
56    RW +0
57    {
58        * (+RW-DATA)
59    }
60}
61
62ZI_SECTION      +0
63{
64    ZI +0
65    {
66        * (+ZI)
67    }
68}
69
70MODULE_INFO     MODULE_INFO_ADDR
71{
72    .module_id  +0
73    {
74        * (.module_id)
75    }
76}
77