Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

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