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
133 theseven 9
    INITBSS : ORIGIN = 0x09e00000, LENGTH = 0x0017f000
10
    INITSTACK : ORIGIN = 0x09f7f000, LENGTH = 0x00001000
2 theseven 11
    SRAM : ORIGIN = 0x22000000, LENGTH = 0x0002bdf0
133 theseven 12
    SDRAM : ORIGIN = 0x09f80000, LENGTH = 0x00100000
2 theseven 13
}
14
 
15
SECTIONS
16
{
15 theseven 17
    .init :
18
    {
35 theseven 19
        _initstart = .;
98 theseven 20
	*(.inithead*)
2 theseven 21
        *(.initcode*)
22
        *(.initrodata*)
23
        *(.initdata*)
24
        . = ALIGN(0x4);
35 theseven 25
        _initend = .;
2 theseven 26
    } > INIT
27
 
15 theseven 28
    .sram :
29
    {
2 theseven 30
        _sramstart = .;
31
        KEEP(*(.intvect))
32
        *(.intvect)
33
        *(.icode*)
34
        *(.irodata*)
35
        *(.idata*)
36
        . = ALIGN(0x4);
37
        _sramend = .;
38
    } > SRAM AT> INIT
15 theseven 39
    _sramsource = LOADADDR(.sram);
2 theseven 40
 
15 theseven 41
    .sdram :
2 theseven 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
15 theseven 54
    _sdramsource = LOADADDR(.sdram);
2 theseven 55
 
56
    .initbss (NOLOAD) :
57
    {
58
        _initbssstart = .;
59
        *(.initbss*)
60
        . = ALIGN(0x4);
61
        _initstackstart = .;
61 theseven 62
        . += 0x400;
2 theseven 63
        _initstackend = .;
64
        _initbssend = .;
133 theseven 65
    } > INITBSS
2 theseven 66
 
67
    .ibss (NOLOAD) :
68
    {
69
        _ibssstart = .;
70
        *(.ibss*)
71
        . = ALIGN(0x4);
72
        _irqstackstart = .;
73
        . += 0x400;
74
        _irqstackend = .;
75
        _abortstackstart = .;
76
        . += 0x400;
77
        _abortstackend = .;
15 theseven 78
        *(.stack*)
2 theseven 79
        _ibssend = .;
80
    } > SRAM
81
 
82
    .bss (NOLOAD) :
83
    {
84
        _bssstart = .;
85
        *(.bss*)
86
        *(COMMON)
87
        . = ALIGN(0x4);
88
        _bssend = .;
89
    } > SDRAM
90
 
89 theseven 91
    .initstack (NOLOAD) :
92
    {
93
        _loadspaceend = .;
94
        *(.initstack*)
95
        *(COMMON)
96
        . = ALIGN(0x4);
97
    } > INITSTACK
98
 
2 theseven 99
    /DISCARD/ :
100
    {
101
        *(.eh_frame)
102
    }
103
 
104
}