Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 theseven 1
ENTRY(_start)
2
OUTPUT_FORMAT(elf32-littlearm)
3
OUTPUT_ARCH(arm)
4
STARTUP(build/ipodnano2g/target/ipodnano2g/crt0.o)
5
 
6
MEMORY
7
{
8
    INIT : ORIGIN = 0x08000000, LENGTH = 0x01f00000
9
    SRAM : ORIGIN = 0x22000000, LENGTH = 0x0002bdf0
10
    SDRAM : ORIGIN = 0x09f00000, LENGTH = 0x00100000
11
}
12
 
13
SECTIONS
14
{
15
    .init : {
16
        *(.initcode*)
17
        *(.initrodata*)
18
        *(.initdata*)
19
        . = ALIGN(0x4);
20
    } > INIT
21
 
22
    .intvect : {
23
        _sramstart = .;
24
        KEEP(*(.intvect))
25
        *(.intvect)
26
    } > SRAM AT> INIT
27
    _sramsource = LOADADDR(.intvect);
28
 
29
    .iram :
30
    {
31
        *(.icode*)
32
        *(.irodata*)
33
        *(.idata*)
34
        . = ALIGN(0x4);
35
        _sramend = .;
36
    } > SRAM AT> INIT
37
 
38
    .text :
39
    {
40
        _sdramstart = .;
41
        *(.text*)
42
        *(.glue_7)
43
        *(.glue_7t)
44
        . = ALIGN(0x4);
45
    } > SDRAM AT> INIT
46
    _sdramsource = LOADADDR(.text);
47
 
48
    .rodata :
49
    {
50
        *(.rodata*)
51
        . = ALIGN(0x4);
52
    } > SDRAM AT> INIT
53
 
54
    .data :
55
    {
56
        *(.data*)
57
        . = ALIGN(0x4);
58
        _sdramend = .;
59
    } > SDRAM AT> INIT
60
 
61
    .initbss (NOLOAD) :
62
    {
63
        _initbssstart = .;
64
        *(.initbss*)
65
        . = ALIGN(0x4);
66
        _initstackstart = .;
67
        . += 0x4000;
68
        _initstackend = .;
69
        _initbssend = .;
70
    } > INIT
71
 
72
    .ibss (NOLOAD) :
73
    {
74
        _ibssstart = .;
75
        *(.ibss*)
76
        . = ALIGN(0x4);
77
        _irqstackstart = .;
78
        . += 0x400;
79
        _irqstackend = .;
80
        _abortstackstart = .;
81
        . += 0x400;
82
        _abortstackend = .;
83
        *(.stack)
84
        _ibssend = .;
85
    } > SRAM
86
 
87
    .bss (NOLOAD) :
88
    {
89
        _bssstart = .;
90
        *(.bss*)
91
        *(COMMON)
92
        . = ALIGN(0x4);
93
        _bssend = .;
94
    } > SDRAM
95
 
96
    /DISCARD/ :
97
    {
98
        *(.eh_frame)
99
    }
100
 
101
}