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
{
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 = .;
2 theseven 19
        *(.initcode*)
20
        *(.initrodata*)
21
        *(.initdata*)
22
        . = ALIGN(0x4);
35 theseven 23
        _initend = .;
2 theseven 24
    } > INIT
25
 
15 theseven 26
    .sram :
27
    {
2 theseven 28
        _sramstart = .;
29
        KEEP(*(.intvect))
30
        *(.intvect)
31
        *(.icode*)
32
        *(.irodata*)
33
        *(.idata*)
34
        . = ALIGN(0x4);
35
        _sramend = .;
36
    } > SRAM AT> INIT
15 theseven 37
    _sramsource = LOADADDR(.sram);
2 theseven 38
 
15 theseven 39
    .sdram :
2 theseven 40
    {
41
        _sdramstart = .;
42
        *(.text*)
43
        *(.glue_7)
44
        *(.glue_7t)
45
        . = ALIGN(0x4);
46
        *(.rodata*)
47
        . = ALIGN(0x4);
48
        *(.data*)
49
        . = ALIGN(0x4);
50
        _sdramend = .;
51
    } > SDRAM AT> INIT
15 theseven 52
    _sdramsource = LOADADDR(.sdram);
2 theseven 53
 
54
    .initbss (NOLOAD) :
55
    {
56
        _initbssstart = .;
57
        *(.initbss*)
58
        . = ALIGN(0x4);
59
        _initstackstart = .;
61 theseven 60
        . += 0x400;
2 theseven 61
        _initstackend = .;
62
        _initbssend = .;
63
    } > INIT
64
 
65
    .ibss (NOLOAD) :
66
    {
67
        _ibssstart = .;
68
        *(.ibss*)
69
        . = ALIGN(0x4);
70
        _irqstackstart = .;
71
        . += 0x400;
72
        _irqstackend = .;
73
        _abortstackstart = .;
74
        . += 0x400;
75
        _abortstackend = .;
15 theseven 76
        *(.stack*)
2 theseven 77
        _ibssend = .;
78
    } > SRAM
79
 
80
    .bss (NOLOAD) :
81
    {
82
        _bssstart = .;
83
        *(.bss*)
84
        *(COMMON)
85
        . = ALIGN(0x4);
86
        _bssend = .;
87
    } > SDRAM
88
 
89 theseven 89
    .initstack (NOLOAD) :
90
    {
91
        _loadspaceend = .;
92
        *(.initstack*)
93
        *(COMMON)
94
        . = ALIGN(0x4);
95
    } > INITSTACK
96
 
2 theseven 97
    /DISCARD/ :
98
    {
99
        *(.eh_frame)
100
    }
101
 
102
}