summaryrefslogtreecommitdiff
path: root/ld_script.ld
blob: ec9609c92f167363a0339844a60589d5033676ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SECTIONS
{
    /* start of ewram */
    . = 0x02000000;
    ewram (NOLOAD) :
    ALIGN(4)
    {
        asm/ewram.o(ewram);
        . = 0x40000;
    }
    
    /* start of iwram */
    . = 0x03000000;
    iwram (NOLOAD) :
    ALIGN(4)
    {
        asm/iwram.o(iwram);
        . = 0x8000;
    }
    
    /* start of ROM */
    . = 0x08000000;
    .text :
    {
        asm/start.o(.text);
        src/main.o(.text);
        asm/main.o(.text);
        asm/rom.o(.text);
    }=0xFF
}