Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

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